summaryrefslogtreecommitdiff
path: root/arch/avr32/boards/hammerhead/setup.c
diff options
context:
space:
mode:
authorHaavard Skinnemoen <haavard.skinnemoen@atmel.com>2009-01-05 19:14:22 +0300
committerHaavard Skinnemoen <haavard.skinnemoen@atmel.com>2009-01-05 19:14:22 +0300
commit4209324a74fd234fa44bb18a3331356e41df773a (patch)
tree63152c5482ceb45f1440a8c0659b191ee905eaf3 /arch/avr32/boards/hammerhead/setup.c
parent0e490050902adaca9b30275ec9a544a786bf2db8 (diff)
downloadlinux-4209324a74fd234fa44bb18a3331356e41df773a.tar.xz
avr32: data param to at32_add_device_mci() must be non-NULL
at32_add_device_mci() will refuse to add the mci device if the data parameter is NULL. Fix up the favr-32 and hammerhead boards so that this doesn't happen. Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com> Cc: Alex Raimondi <mailinglist@miromico.ch> Cc: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Diffstat (limited to 'arch/avr32/boards/hammerhead/setup.c')
-rw-r--r--arch/avr32/boards/hammerhead/setup.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/arch/avr32/boards/hammerhead/setup.c b/arch/avr32/boards/hammerhead/setup.c
index af45c26c5ff9..4d2fe82b2029 100644
--- a/arch/avr32/boards/hammerhead/setup.c
+++ b/arch/avr32/boards/hammerhead/setup.c
@@ -7,6 +7,7 @@
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
+#include <linux/atmel-mci.h>
#include <linux/clk.h>
#include <linux/fb.h>
#include <linux/etherdevice.h>
@@ -86,6 +87,14 @@ struct atmel_lcdfb_info __initdata hammerhead_lcdc_data = {
};
#endif
+static struct mci_platform_data __initdata mci0_data = {
+ .slot[0] = {
+ .bus_width = 4,
+ .detect_pin = -ENODEV,
+ .wp_pin = -ENODEV,
+ },
+};
+
struct eth_addr {
u8 addr[6];
};
@@ -204,7 +213,7 @@ static int __init hammerhead_init(void)
#ifdef CONFIG_BOARD_HAMMERHEAD_FPGA
at32_add_device_hh_fpga();
#endif
- at32_add_device_mci(0, NULL);
+ at32_add_device_mci(0, &mci0_data);
#ifdef CONFIG_BOARD_HAMMERHEAD_USB
at32_add_device_usba(0, NULL);