]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/hwmon/hwmon.c
OMAP2: omap-keypad: interrupt disable fix
[linux-2.6-omap-h63xx.git] / drivers / hwmon / hwmon.c
index 3db28450a3b34504facc27cc8a9611a8e53569cd..7321a88a51128adef8ba40016e03f0648b7e4a97 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_drvdata(hwmon_class, dev, MKDEV(0, 0), NULL,
+                                     HWMON_ID_FORMAT, id);
 
        if (IS_ERR(hwdev)) {
                spin_lock(&idr_lock);