Skip to content

Commit

Permalink
mmc: mxcmmc: explicitly includes mach/hardware.h
Browse files Browse the repository at this point in the history
When indirect inclusion to <mach/hardware.h> via <mach/gpio.h> gets
removed, we will see the following compile error.

  CC      drivers/mmc/host/mxcmmc.o
drivers/mmc/host/mxcmmc.c: In function ‘mxcmci_init_card’:
drivers/mmc/host/mxcmmc.c:811:2: error: implicit declaration of function ‘cpu_is_mx3’

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
  • Loading branch information
Shawn Guo authored and Sascha Hauer committed Oct 17, 2011
1 parent bbbab56 commit edae899
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/mmc/host/mxcmmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#include <mach/mmc.h>

#include <mach/dma.h>
#include <mach/hardware.h>

#define DRIVER_NAME "mxc-mmc"

Expand Down

0 comments on commit edae899

Please sign in to comment.