Commit ab0fd09d authored by Harshit Mogalapalli's avatar Harshit Mogalapalli Committed by Guenter Roeck
Browse files

hwmon: (gpd-fan) Fix return value when platform_get_resource() fails



When platform_get_resource() fails it returns NULL and not an error
pointer, accordingly change the error handling.

Fixes: 0ab88e23 ("hwmon: add GPD devices sensor driver")
Signed-off-by: default avatarHarshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Link: https://lore.kernel.org/r/20251010204359.94300-1-harshit.m.mogalapalli@oracle.com


Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 41de7440
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment