Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 77d7d7a3 authored by Felipe Balbi's avatar Felipe Balbi Committed by Luciano Coelho
Browse files

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: default avatarFelipe Balbi <balbi@ti.com>
Signed-off-by: default avatarLuciano Coelho <coelho@ti.com>
parent 6bdaf796
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -128,11 +128,13 @@ EXPORT_SYMBOL_GPL(wl1271_set_partition);

void wl1271_io_reset(struct wl1271 *wl)
{
	if (wl->if_ops->reset)
		wl->if_ops->reset(wl);
}

void wl1271_io_init(struct wl1271 *wl)
{
	if (wl->if_ops->init)
		wl->if_ops->init(wl);
}