]> err.no Git - linux-2.6/commitdiff
[PATCH] rtc: Make rtc-rs5c348 driver hotplug-aware
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Sun, 19 Aug 2007 13:32:10 +0000 (22:32 +0900)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 27 Aug 2007 01:16:58 +0000 (02:16 +0100)
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: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Acked-by: David Brownell <david-b@pacbell.net>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/tx4938/toshiba_rbtx4938/setup.c
drivers/rtc/rtc-rs5c348.c

index 57f3c705d08225ed5a4695b707405597763ff2af..84ebff711e6ee294f84cbde0fb091c47a7fe3be1 100644 (file)
@@ -1115,7 +1115,7 @@ static void __init txx9_spi_init(unsigned long base, int irq)
 static int __init rbtx4938_spi_init(void)
 {
        struct spi_board_info srtc_info = {
-               .modalias = "rs5c348",
+               .modalias = "rtc-rs5c348",
                .max_speed_hz = 1000000, /* 1.0Mbps @ Vdd 2.0V */
                .bus_num = 0,
                .chip_select = 16 + SRTC_CS,
index f50f3fc353cd64be4845c8dcc90bfd6eeb7cc877..839462659afa4c386c46758c5eed872a61df27d1 100644 (file)
@@ -226,7 +226,7 @@ static int __devexit rs5c348_remove(struct spi_device *spi)
 
 static struct spi_driver rs5c348_driver = {
        .driver = {
-               .name   = "rs5c348",
+               .name   = "rtc-rs5c348",
                .bus    = &spi_bus_type,
                .owner  = THIS_MODULE,
        },