]> git.baikalelectronics.ru Git - kernel.git/commit
wlcore: remove if_ops from platform_data
authorLuciano Coelho <coelho@ti.com>
Fri, 25 Jan 2013 09:57:48 +0000 (11:57 +0200)
committerLuciano Coelho <coelho@ti.com>
Fri, 8 Feb 2013 08:05:02 +0000 (10:05 +0200)
commit4574680703d6d2e2ae7f429ea7c516ba9a0c2e0f
treeb8df657e3e4e54c71e95f3972d7b9b05e286188d
parentd0e7754e14a7fb092f394991c16999828c1f19c4
wlcore: remove if_ops from platform_data

We can't pass pointers from the platform data to the modules, because
with DT it cannot be done.  Those pointers are not set by the board
files anyway.  It's the bus modules that set them, so they can be
safely removed from the platform data without changing any board
files.

Create a new structure that the bus modules pass to wlcore.  This
structure contains the if_ops pointers and a pointer to the actual
platform data.

Signed-off-by: Luciano Coelho <coelho@ti.com>
Reviewed-by: Felipe Balbi <balbi@ti.com>
drivers/net/wireless/ti/wl12xx/main.c
drivers/net/wireless/ti/wlcore/main.c
drivers/net/wireless/ti/wlcore/sdio.c
drivers/net/wireless/ti/wlcore/spi.c
drivers/net/wireless/ti/wlcore/wlcore_i.h
include/linux/wl12xx.h