diff options
Diffstat (limited to 'drivers/hwmon/ibmpowernv.c')
| -rw-r--r-- | drivers/hwmon/ibmpowernv.c | 10 | 
1 files changed, 2 insertions, 8 deletions
| diff --git a/drivers/hwmon/ibmpowernv.c b/drivers/hwmon/ibmpowernv.c index 83472808c816..0ccca87f5271 100644 --- a/drivers/hwmon/ibmpowernv.c +++ b/drivers/hwmon/ibmpowernv.c @@ -458,9 +458,6 @@ static int populate_attr_groups(struct platform_device *pdev)  	for_each_child_of_node(opal, np) {  		const char *label; -		if (np->name == NULL) -			continue; -  		type = get_sensor_type(np);  		if (type == MAX_SENSOR_TYPE)  			continue; @@ -589,9 +586,6 @@ static int create_device_attrs(struct platform_device *pdev)  		const char *label;  		enum sensors type; -		if (np->name == NULL) -			continue; -  		type = get_sensor_type(np);  		if (type == MAX_SENSOR_TYPE)  			continue; @@ -603,8 +597,8 @@ static int create_device_attrs(struct platform_device *pdev)  		if (of_property_read_u32(np, "sensor-id", &sensor_id) &&  		    of_property_read_u32(np, "sensor-data", &sensor_id)) {  			dev_info(&pdev->dev, -				 "'sensor-id' missing in the node '%s'\n", -				 np->name); +				 "'sensor-id' missing in the node '%pOFn'\n", +				 np);  			continue;  		} |