diff options
author | Felipe Balbi <balbi@ti.com> | 2011-05-14 00:26:21 +0300 |
---|---|---|
committer | Luciano Coelho <coelho@ti.com> | 2011-06-27 10:15:46 +0300 |
commit | 77d7d7a36d270fee4591c1c99c83c2da1f399d44 (patch) | |
tree | dc22ab0ad70dd233c9c2ead87ece97b36868312a /drivers/net/wireless/wl12xx | |
parent | 6bdaf79623e285242cb977840358dc7d14438475 (diff) |
net: wl12xx: care for optional operations
->init and ->reset are optional - at least
sdio.c doesn't implement them - so allow those
pointers to be NULL.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx')
-rw-r--r-- | drivers/net/wireless/wl12xx/io.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/wireless/wl12xx/io.c b/drivers/net/wireless/wl12xx/io.c index da5c1ad942a..f37a7933f90 100644 --- a/drivers/net/wireless/wl12xx/io.c +++ b/drivers/net/wireless/wl12xx/io.c @@ -128,12 +128,14 @@ EXPORT_SYMBOL_GPL(wl1271_set_partition); void wl1271_io_reset(struct wl1271 *wl) { - wl->if_ops->reset(wl); + if (wl->if_ops->reset) + wl->if_ops->reset(wl); } void wl1271_io_init(struct wl1271 *wl) { - wl->if_ops->init(wl); + if (wl->if_ops->init) + wl->if_ops->init(wl); } void wl1271_top_reg_write(struct wl1271 *wl, int addr, u16 val) |