Re: [PATCH] brcmfmac: fix invalid access to struct acpi_device fields

2015-05-28 Thread Arend van Spriel
On 05/28/15 18:48, Jason Andryuk wrote: On Wed, May 27, 2015 at 1:31 PM, Arend van Spriel wrote: diff --git a/drivers/net/wireless/brcm80211/brcmfmac/bcmsdh.c b/drivers/net/wireless/brcm80211/brcmfmac/bcmsdh.c index b0d0ff5..71779b9 100644 --- a/drivers/net/wireless/brcm80211/brcmfmac/bcmsdh.c

Re: [PATCH] brcmfmac: fix invalid access to struct acpi_device fields

2015-05-28 Thread Jason Andryuk
On Wed, May 27, 2015 at 1:31 PM, Arend van Spriel wrote: > diff --git a/drivers/net/wireless/brcm80211/brcmfmac/bcmsdh.c > b/drivers/net/wireless/brcm80211/brcmfmac/bcmsdh.c > index b0d0ff5..71779b9 100644 > --- a/drivers/net/wireless/brcm80211/brcmfmac/bcmsdh.c > +++ b/drivers/net/wireless/brcm8

[PATCH] brcmfmac: fix invalid access to struct acpi_device fields

2015-05-27 Thread Arend van Spriel
The fields of struct acpi_device are only known when CONFIG_ACPI is defined. Fix this by using a helper function. This will resolve the issue found in linux-next: ../brcmfmac/bcmsdh.c: In function 'brcmf_ops_sdio_probe': ../brcmfmac/bcmsdh.c:1139:7: error: dereferencing pointer to incomplete typ