diff options
Diffstat (limited to 'drivers/mtd/devices/mtd_dataflash.c')
-rw-r--r-- | drivers/mtd/devices/mtd_dataflash.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/mtd/devices/mtd_dataflash.c b/drivers/mtd/devices/mtd_dataflash.c index cfad8b1c17..ddab6bbb79 100644 --- a/drivers/mtd/devices/mtd_dataflash.c +++ b/drivers/mtd/devices/mtd_dataflash.c @@ -875,13 +875,7 @@ static struct driver_d dataflash_driver = { .name = "mtd_dataflash", .probe = dataflash_probe, }; - -static int dataflash_init(void) -{ - spi_driver_register(&dataflash_driver); - return 0; -} -device_initcall(dataflash_init); +device_spi_driver(dataflash_driver); MODULE_LICENSE("GPL"); MODULE_AUTHOR("Andrew Victor, David Brownell"); |