ARM: 5824/1: SA1100: reuse h3600 PCMCIA driver on h3100
authorDmitry Artamonow <mad_soft@inbox.ru>
Fri, 27 Nov 2009 11:13:47 +0000 (12:13 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 6 Dec 2009 16:52:57 +0000 (16:52 +0000)
Both iPAQs h3600 and h3100 share the same control
GPIOs for PCMCIA, so driver can be reused.

Signed-off-by: Dmitry Artamonow <mad_soft@inbox.ru>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/pcmcia/sa1100_generic.c
drivers/pcmcia/sa1100_h3600.c

index 11cc3ba1260ab6bf7763005a3436b85658fd524f..8db86b90c200e089a59dc5ea0fd17e721e490411 100644 (file)
@@ -51,7 +51,7 @@ static int (*sa11x0_pcmcia_hw_init[])(struct device *dev) = {
 #ifdef CONFIG_SA1100_CERF
        pcmcia_cerf_init,
 #endif
-#ifdef CONFIG_SA1100_H3600
+#if defined(CONFIG_SA1100_H3100) || defined(CONFIG_SA1100_H3600)
        pcmcia_h3600_init,
 #endif
 #ifdef CONFIG_SA1100_SHANNON
index 8706d42c9418605e314d2e3a5d71c93706f45f59..56329ad575a90cdbb78c8d9720b6f1ccb1687359 100644 (file)
@@ -223,7 +223,7 @@ int __init pcmcia_h3600_init(struct device *dev)
 {
        int ret = -ENODEV;
 
-       if (machine_is_h3600())
+       if (machine_is_h3600() || machine_is_h3100())
                ret = sa11xx_drv_pcmcia_probe(dev, &h3600_pcmcia_ops, 0, 2);
 
        return ret;