patch-2_6_7-vs1_9_1_12
[linux-2.6.git] / drivers / mtd / chips / sharp.c
index 0a5d4f1..bd0ed89 100644 (file)
@@ -30,6 +30,7 @@
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/cfi.h>
 #include <linux/delay.h>
+#include <linux/init.h>
 
 #define CMD_RESET              0xffffffff
 #define CMD_READ_ID            0x90909090
@@ -154,7 +155,7 @@ struct mtd_info *sharp_probe(struct map_info *map)
        map->fldrv = &sharp_chipdrv;
        map->fldrv_priv = sharp;
 
-       MOD_INC_USE_COUNT;
+       __module_get(THIS_MODULE);
        return mtd;
 }