]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/hwmon/hwmon.c
[PATCH] hwmon: Missing class check in two hwmon drivers
[linux-2.6-omap-h63xx.git] / drivers / hwmon / hwmon.c
index 9b41c9bd805f561594fcc6fcf7d78923dad24490..6f48579799b588b456a59f18b41cccae19bc8d2b 100644 (file)
@@ -45,7 +45,7 @@ struct class_device *hwmon_device_register(struct device *dev)
                return ERR_PTR(-ENOMEM);
 
        id = id & MAX_ID_MASK;
-       cdev = class_device_create(hwmon_class, MKDEV(0,0), dev,
+       cdev = class_device_create(hwmon_class, NULL, MKDEV(0,0), dev,
                                        HWMON_ID_FORMAT, id);
 
        if (IS_ERR(cdev))