diff options
Diffstat (limited to 'arch/arm/plat-s3c24xx/gta02_pm_wlan.c')
-rw-r--r-- | arch/arm/plat-s3c24xx/gta02_pm_wlan.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/arm/plat-s3c24xx/gta02_pm_wlan.c b/arch/arm/plat-s3c24xx/gta02_pm_wlan.c index 954015e4c71..7c6154d4970 100644 --- a/arch/arm/plat-s3c24xx/gta02_pm_wlan.c +++ b/arch/arm/plat-s3c24xx/gta02_pm_wlan.c @@ -92,16 +92,19 @@ static struct attribute_group gta02_wlan_attr_group = { static int __init gta02_wlan_probe(struct platform_device *pdev) { + /* default-on for now */ + const int default_state = 1; + if (!machine_is_neo1973_gta02()) return -EINVAL; dev_info(&pdev->dev, "starting\n"); /* Power is down */ - s3c2410_gpio_setpin(GTA02_CHIP_PWD, 1); + s3c2410_gpio_setpin(GTA02_CHIP_PWD, !default_state); s3c2410_gpio_cfgpin(GTA02_CHIP_PWD, S3C2410_GPIO_OUTPUT); /* reset is asserted */ - s3c2410_gpio_setpin(GTA02_GPIO_nWLAN_RESET, 0); + s3c2410_gpio_setpin(GTA02_GPIO_nWLAN_RESET, default_state); s3c2410_gpio_cfgpin(GTA02_GPIO_nWLAN_RESET, S3C2410_GPIO_OUTPUT); return sysfs_create_group(&pdev->dev.kobj, >a02_wlan_attr_group); |