thermal: sun8i: fix using plain integer as NULL pointer in sun8i_ths_resource_init
Subsystems (3)
Yangtao Li
maintainerPATCH 1/1 thermal: sun8i: fix using plain integer as NULL pointer in sun8i_ths_resource_init
To fix:
drivers/thermal/sun8i_thermal.c:341:60: sparse: sparse: Using plain integer as NULL pointer
Reported-by kbuild test robot <[email protected]>
Signed-off-by Yangtao Li <[email protected]>
--- drivers/thermal/sun8i_thermal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/thermal/sun8i_thermal.c +1 -1
@@ -338,7 +338,7 @@ static int sun8i_ths_resource_init(struct ths_device *tmdev)return PTR_ERR (tmdev->regmap);if (tmdev->chip->has_bus_clk_reset) { - tmdev->reset =devm_reset_control_get (dev,0 ); + tmdev->reset =devm_reset_control_get (dev,NULL );if (IS_ERR (tmdev->reset))return PTR_ERR (tmdev->reset);
Signature · 1 line
2.17.1
Daniel Lezcano
AppliedQuoted 7 lines · Yangtao Li
To fix:
drivers/thermal/sun8i_thermal.c:341:60: sparse: sparse: Using plain integer as NULL pointerReported-by kbuild test robot <[email protected]>Signed-off-by Yangtao Li <[email protected]>
Applied, thanks
Quoted 18 lines
--- drivers/thermal/sun8i_thermal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/thermal/sun8i_thermal.c +1
-1@@ -338,7 +338,7 @@ static int sun8i_ths_resource_init(struct ths_device *tmdev)return PTR_ERR (tmdev->regmap);if (tmdev->chip->has_bus_clk_reset) { - tmdev->reset =devm_reset_control_get (dev,0 ); + tmdev->reset =devm_reset_control_get (dev,NULL );if (IS_ERR (tmdev->reset))return PTR_ERR (tmdev->reset);
Signature · 5 lines
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook | <http://twitter.com/#!/linaroorg> Twitter | <http://www.linaro.org/linaro-blog/> Blog