summaryrefslogtreecommitdiff
path: root/packages/linux/handhelds-pxa-2.4.19-rmk6-pxa1-hh37.4/mmc_h5400.patch
blob: 2f75747ebf61497926208ade2866aead203fbe87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- kernel/drivers/mmc/mmc_h5400.c.old	2004-12-06 20:41:32.000000000 +0000
+++ kernel/drivers/mmc/mmc_h5400.c	2004-12-06 20:42:02.000000000 +0000
@@ -28,6 +28,7 @@
 #include <asm/irq.h>       
 #include <asm/io.h>        /* ioremap() */
 #include <asm/unaligned.h>
+#include <asm/mach-types.h>
 
 #include <asm/arch/hardware.h>
 #include <asm/arch/h5400-gpio.h>
@@ -97,6 +98,9 @@
 {
         int retval;
 
+	if (!machine_is_h5400())
+		return -ENODEV;
+
 	h5400_mmc_lowlevel.sd_base = ioremap(H5400_ASIC_PHYS + _H5400_ASIC_SDI_Base, 0x10000) + 0x30;
 	retval = s3c_mmc_register_slot(&h5400_mmc_lowlevel);
 	if ( retval < 0 )