wl1251: move power GPIO handling into the driver

Move the power GPIO handling from the board code into
the driver. This is a dependency for device tree support.

Signed-off-by: Sebastian Reichel <sre@debian.org>
Reviewed-by: Pavel Machek <pavel@ucw.cz>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
Sebastian Reichel 2014-02-15 00:05:53 +01:00 committed by John W. Linville
parent 946651cba2
commit 1d207cd30b
6 changed files with 43 additions and 28 deletions

View file

@ -49,7 +49,7 @@ enum {
};
struct wl1251_platform_data {
void (*set_power)(bool enable);
int power_gpio;
/* SDIO only: IRQ number if WLAN_IRQ line is used, 0 for SDIO IRQs */
int irq;
bool use_eeprom;