Commit ae29fbb1 authored by Dan Carpenter's avatar Dan Carpenter Committed by John W. Linville

wl1251: wl12xx_get_platform_data() returns an ERR_PTR

wl12xx_get_platform_data() returns an ERR_PTR on failure and it never
returns a NULL.
Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Acked-by: default avatarKalle Valo <kvalo@adurom.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent d704300f
...@@ -252,7 +252,7 @@ static int wl1251_sdio_probe(struct sdio_func *func, ...@@ -252,7 +252,7 @@ static int wl1251_sdio_probe(struct sdio_func *func,
wl->if_ops = &wl1251_sdio_ops; wl->if_ops = &wl1251_sdio_ops;
wl12xx_board_data = wl12xx_get_platform_data(); wl12xx_board_data = wl12xx_get_platform_data();
if (wl12xx_board_data != NULL) { if (!IS_ERR(wl12xx_board_data)) {
wl->set_power = wl12xx_board_data->set_power; wl->set_power = wl12xx_board_data->set_power;
wl->irq = wl12xx_board_data->irq; wl->irq = wl12xx_board_data->irq;
wl->use_eeprom = wl12xx_board_data->use_eeprom; wl->use_eeprom = wl12xx_board_data->use_eeprom;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment