|
@@ -38,7 +38,6 @@ static struct mtd_info *h1910_nand_mtd = NULL;
|
|
|
* Module stuff
|
|
|
*/
|
|
|
|
|
|
-#ifdef CONFIG_MTD_PARTITIONS
|
|
|
/*
|
|
|
* Define static partitions for flash device
|
|
|
*/
|
|
@@ -50,8 +49,6 @@ static struct mtd_partition partition_info[] = {
|
|
|
|
|
|
#define NUM_PARTITIONS 1
|
|
|
|
|
|
-#endif
|
|
|
-
|
|
|
/*
|
|
|
* hardware specific access to control-lines
|
|
|
*
|
|
@@ -154,7 +151,7 @@ static int __init h1910_init(void)
|
|
|
|
|
|
/* Register the partitions */
|
|
|
printk(KERN_NOTICE "Using %s partition definition\n", part_type);
|
|
|
- add_mtd_partitions(h1910_nand_mtd, mtd_parts, mtd_parts_nb);
|
|
|
+ mtd_device_register(h1910_nand_mtd, mtd_parts, mtd_parts_nb);
|
|
|
|
|
|
/* Return happy */
|
|
|
return 0;
|