From: Eric Miao Date: Fri, 8 Aug 2008 06:59:03 +0000 (+0800) Subject: [ARM] pxa/colibri: convert to use new MFP API X-Git-Tag: v2.6.28-rc1~293^2~6^2~17^2~4^4~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c0b1541fc7d3969b662f39214c58fe796e9e4a51;p=profile%2Fivi%2Fkernel-x86-ivi.git [ARM] pxa/colibri: convert to use new MFP API Signed-off-by: Eric Miao Cc: Daniel Mack Signed-off-by: Russell King --- diff --git a/arch/arm/mach-pxa/colibri.c b/arch/arm/mach-pxa/colibri.c index abce13c..e847362 100644 --- a/arch/arm/mach-pxa/colibri.c +++ b/arch/arm/mach-pxa/colibri.c @@ -29,12 +29,17 @@ #include #include #include -#include +#include #include #include "generic.h" #include "devices.h" +static unsigned long colibri_pin_config[] __initdata = { + GPIO78_nCS_2, /* Ethernet CS */ + GPIO114_GPIO, /* Ethernet IRQ */ +}; + /* * Flash */ @@ -116,9 +121,7 @@ static struct platform_device *colibri_devices[] __initdata = { static void __init colibri_init(void) { - /* DM9000 LAN */ - pxa_gpio_mode(GPIO78_nCS_2_MD); - pxa_gpio_mode(GPIO_DM9000 | GPIO_IN); + pxa2xx_mfp_config(ARRAY_AND_SIZE(colibri_pin_config)); platform_add_devices(colibri_devices, ARRAY_SIZE(colibri_devices)); }