]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/linux/handhelds-pxa-2.4.19-rmk6-pxa1-hh37.4/mmc_h5400.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / linux / handhelds-pxa-2.4.19-rmk6-pxa1-hh37.4 / mmc_h5400.patch
1 --- kernel/drivers/mmc/mmc_h5400.c.old  2004-12-06 20:41:32.000000000 +0000
2 +++ kernel/drivers/mmc/mmc_h5400.c      2004-12-06 20:42:02.000000000 +0000
3 @@ -28,6 +28,7 @@
4  #include <asm/irq.h>       
5  #include <asm/io.h>        /* ioremap() */
6  #include <asm/unaligned.h>
7 +#include <asm/mach-types.h>
8  
9  #include <asm/arch/hardware.h>
10  #include <asm/arch/h5400-gpio.h>
11 @@ -97,6 +98,9 @@
12  {
13          int retval;
14  
15 +       if (!machine_is_h5400())
16 +               return -ENODEV;
17 +
18         h5400_mmc_lowlevel.sd_base = ioremap(H5400_ASIC_PHYS + _H5400_ASIC_SDI_Base, 0x10000) + 0x30;
19         retval = s3c_mmc_register_slot(&h5400_mmc_lowlevel);
20         if ( retval < 0 )