mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-28 07:13:34 +00:00
ARM: mx51: Remove imx51_add_gpio_keys
There is no need for using a MX51-specific version of imx_add_gpio_keys. Remove imx51_add_gpio_keys and use imx_add_gpio_keys instead. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> LAKML-Reference: 1302105926-20574-1-git-send-email-fabio.estevam@freescale.com Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
18879e13b1
commit
ba8a6c04ea
4 changed files with 3 additions and 5 deletions
|
@ -355,7 +355,7 @@ static void __init mx51_babbage_init(void)
|
||||||
|
|
||||||
/* Set the PAD settings for the pwr key. */
|
/* Set the PAD settings for the pwr key. */
|
||||||
mxc_iomux_v3_setup_pad(power_key);
|
mxc_iomux_v3_setup_pad(power_key);
|
||||||
imx51_add_gpio_keys(&imx_button_data);
|
imx_add_gpio_keys(&imx_button_data);
|
||||||
|
|
||||||
imx51_add_imx_i2c(0, &babbage_i2c_data);
|
imx51_add_imx_i2c(0, &babbage_i2c_data);
|
||||||
imx51_add_imx_i2c(1, &babbage_i2c_data);
|
imx51_add_imx_i2c(1, &babbage_i2c_data);
|
||||||
|
|
|
@ -249,7 +249,7 @@ static void __init mx51_efikamx_init(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
platform_device_register(&mx51_efikamx_leds_device);
|
platform_device_register(&mx51_efikamx_leds_device);
|
||||||
imx51_add_gpio_keys(&mx51_efikamx_powerkey_data);
|
imx_add_gpio_keys(&mx51_efikamx_powerkey_data);
|
||||||
|
|
||||||
if (system_rev == 0x11) {
|
if (system_rev == 0x11) {
|
||||||
gpio_request(EFIKAMX_RESET1_1, "reset");
|
gpio_request(EFIKAMX_RESET1_1, "reset");
|
||||||
|
|
|
@ -257,7 +257,7 @@ static void __init efikasb_board_init(void)
|
||||||
imx51_add_sdhci_esdhc_imx(1, NULL);
|
imx51_add_sdhci_esdhc_imx(1, NULL);
|
||||||
|
|
||||||
platform_device_register(&mx51_efikasb_leds_device);
|
platform_device_register(&mx51_efikasb_leds_device);
|
||||||
imx51_add_gpio_keys(&mx51_efikasb_keys_data);
|
imx_add_gpio_keys(&mx51_efikasb_keys_data);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -13,8 +13,6 @@ extern const struct imx_fec_data imx51_fec_data;
|
||||||
#define imx51_add_fec(pdata) \
|
#define imx51_add_fec(pdata) \
|
||||||
imx_add_fec(&imx51_fec_data, pdata)
|
imx_add_fec(&imx51_fec_data, pdata)
|
||||||
|
|
||||||
#define imx51_add_gpio_keys(pdata) imx_add_gpio_keys(pdata)
|
|
||||||
|
|
||||||
extern const struct imx_imx_i2c_data imx51_imx_i2c_data[];
|
extern const struct imx_imx_i2c_data imx51_imx_i2c_data[];
|
||||||
#define imx51_add_imx_i2c(id, pdata) \
|
#define imx51_add_imx_i2c(id, pdata) \
|
||||||
imx_add_imx_i2c(&imx51_imx_i2c_data[id], pdata)
|
imx_add_imx_i2c(&imx51_imx_i2c_data[id], pdata)
|
||||||
|
|
Loading…
Reference in a new issue