]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/hwmon/hwmon.c
device create: misc: convert device_create_drvdata to device_create
[linux-2.6-omap-h63xx.git] / drivers / hwmon / hwmon.c
index 3db28450a3b34504facc27cc8a9611a8e53569cd..076a59cdabe9f7a205cedd3883d40416e2e9b9c7 100644 (file)
@@ -55,7 +55,8 @@ again:
                return ERR_PTR(err);
 
        id = id & MAX_ID_MASK;
-       hwdev = device_create(hwmon_class, dev, MKDEV(0,0), HWMON_ID_FORMAT, id);
+       hwdev = device_create(hwmon_class, dev, MKDEV(0, 0), NULL,
+                             HWMON_ID_FORMAT, id);
 
        if (IS_ERR(hwdev)) {
                spin_lock(&idr_lock);