Commit 63b7eeb1 authored by Andrey Smirnov's avatar Andrey Smirnov Committed by Angus Ainslie (Purism)

thermal: qoriq: Remove unnecessary DT node is NULL check

This driver is meant to be used with Device Tree and there's no
use-case where device's DT node is going to be NULL. Remove code
protecting against that.
Signed-off-by: default avatarAndrey Smirnov <>
Cc: Chris Healy <>
Cc: Lucas Stach <>
Cc: Zhang Rui <>
Cc: Eduardo Valentin <>
Cc: Daniel Lezcano <>
parent bf6de941
......@@ -193,11 +193,6 @@ static int qoriq_tmu_probe(struct platform_device *pdev)
struct qoriq_tmu_data *data;
struct device_node *np = pdev->dev.of_node;
if (!np) {
dev_err(&pdev->dev, "Device OF-Node is NULL");
return -ENODEV;
data = devm_kzalloc(&pdev->dev, sizeof(struct qoriq_tmu_data),
if (!data)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment