diff options
Diffstat (limited to 'drivers/mtd/maps')
-rw-r--r-- | drivers/mtd/maps/physmap_of.c | 7 | ||||
-rw-r--r-- | drivers/mtd/maps/sun_uflash.c | 7 |
2 files changed, 10 insertions, 4 deletions
diff --git a/drivers/mtd/maps/physmap_of.c b/drivers/mtd/maps/physmap_of.c index 3dc7a2fbf025..4147fe328c55 100644 --- a/drivers/mtd/maps/physmap_of.c +++ b/drivers/mtd/maps/physmap_of.c | |||
@@ -375,8 +375,11 @@ static struct of_device_id of_flash_match[] = { | |||
375 | MODULE_DEVICE_TABLE(of, of_flash_match); | 375 | MODULE_DEVICE_TABLE(of, of_flash_match); |
376 | 376 | ||
377 | static struct of_platform_driver of_flash_driver = { | 377 | static struct of_platform_driver of_flash_driver = { |
378 | .name = "of-flash", | 378 | .driver = { |
379 | .match_table = of_flash_match, | 379 | .name = "of-flash", |
380 | .owner = THIS_MODULE, | ||
381 | .of_match_table = of_flash_match, | ||
382 | }, | ||
380 | .probe = of_flash_probe, | 383 | .probe = of_flash_probe, |
381 | .remove = of_flash_remove, | 384 | .remove = of_flash_remove, |
382 | }; | 385 | }; |
diff --git a/drivers/mtd/maps/sun_uflash.c b/drivers/mtd/maps/sun_uflash.c index 5945a23e681f..0391c2527bd7 100644 --- a/drivers/mtd/maps/sun_uflash.c +++ b/drivers/mtd/maps/sun_uflash.c | |||
@@ -149,8 +149,11 @@ static const struct of_device_id uflash_match[] = { | |||
149 | MODULE_DEVICE_TABLE(of, uflash_match); | 149 | MODULE_DEVICE_TABLE(of, uflash_match); |
150 | 150 | ||
151 | static struct of_platform_driver uflash_driver = { | 151 | static struct of_platform_driver uflash_driver = { |
152 | .name = DRIVER_NAME, | 152 | .driver = { |
153 | .match_table = uflash_match, | 153 | .name = DRIVER_NAME, |
154 | .owner = THIS_MODULE, | ||
155 | .of_match_table = uflash_match, | ||
156 | }, | ||
154 | .probe = uflash_probe, | 157 | .probe = uflash_probe, |
155 | .remove = __devexit_p(uflash_remove), | 158 | .remove = __devexit_p(uflash_remove), |
156 | }; | 159 | }; |