Commit 9f90a03a authored by Atsushi Nemoto's avatar Atsushi Nemoto Committed by Ralf Baechle

[PATCH] rtc: Make rtc-rs5c348 driver hotplug-aware

The rtc-rs5c348 SPI driver name doesn't match its module name, which
prevents it from properly hotplugging.  There is only one in-tree user
of its driver, which is fixed by this patch too.
Signed-off-by: default avatarAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Acked-by: default avatarDavid Brownell <david-b@pacbell.net>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent c99dcac4
...@@ -1115,7 +1115,7 @@ static void __init txx9_spi_init(unsigned long base, int irq) ...@@ -1115,7 +1115,7 @@ static void __init txx9_spi_init(unsigned long base, int irq)
static int __init rbtx4938_spi_init(void) static int __init rbtx4938_spi_init(void)
{ {
struct spi_board_info srtc_info = { struct spi_board_info srtc_info = {
.modalias = "rs5c348", .modalias = "rtc-rs5c348",
.max_speed_hz = 1000000, /* 1.0Mbps @ Vdd 2.0V */ .max_speed_hz = 1000000, /* 1.0Mbps @ Vdd 2.0V */
.bus_num = 0, .bus_num = 0,
.chip_select = 16 + SRTC_CS, .chip_select = 16 + SRTC_CS,
......
...@@ -226,7 +226,7 @@ static int __devexit rs5c348_remove(struct spi_device *spi) ...@@ -226,7 +226,7 @@ static int __devexit rs5c348_remove(struct spi_device *spi)
static struct spi_driver rs5c348_driver = { static struct spi_driver rs5c348_driver = {
.driver = { .driver = {
.name = "rs5c348", .name = "rtc-rs5c348",
.bus = &spi_bus_type, .bus = &spi_bus_type,
.owner = THIS_MODULE, .owner = THIS_MODULE,
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment