]> git.karo-electronics.de Git - linux-beck.git/commit
brcmfmac: clarify struct brcmf_sdio_dev::func[0] reference
authorArend van Spriel <arend@broadcom.com>
Thu, 12 Dec 2013 10:59:06 +0000 (11:59 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 18 Dec 2013 20:23:00 +0000 (15:23 -0500)
commit36c4e7e4aa0605cd175ee4b953eaced7a00157f4
treed7193da72e7d036d1a5df332e87c5df0a8ec6146
parent9fbe2a6dc71d85e166eea43842a55af3d62a4d7b
brcmfmac: clarify struct brcmf_sdio_dev::func[0] reference

The struct brcmf_sdio_dev contains array of sdio functions that
are used in the driver. However, during probe func[0] entry was
assigned to the function 1 reference. This was corrected upon
doing the actual I/O access. This patch makes it more clear by
creating the func[0] entry properly and use it as is during
I/O access.

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