brcmfmac: avoid usage of func->card->dev in sdio probe.
authorHante Meuleman <meuleman@broadcom.com>
Thu, 15 Nov 2012 02:46:20 +0000 (18:46 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 16 Nov 2012 19:29:02 +0000 (14:29 -0500)
commit5b3c183272ad261c4d8cef5b5277fd18514f6c27
tree82001fbf4e451b2c65a5d514d64de573480be018
parent2def5c10d2f8f81c8089b2c1b63fdc278e7d86f0
brcmfmac: avoid usage of func->card->dev in sdio probe.

brcmf_ops_sdio_probe used the private_date func->card->dev to
store device data of brcmfmac sdio. This is not a good place to
store the data. Use dev of func and use func->card->sdio_func
to group the functions the driver is using.

Reviewed-by: Arend Van Spriel <arend@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: Hante Meuleman <meuleman@broadcom.com>
Signed-off-by: Franky Lin <frankyl@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmfmac/bcmsdh.c
drivers/net/wireless/brcm80211/brcmfmac/bcmsdh_sdmmc.c