]> git.baikalelectronics.ru Git - kernel.git/commit
brcmfmac: fix invalid access to struct acpi_device fields
authorArend van Spriel <arend@broadcom.com>
Wed, 27 May 2015 17:31:41 +0000 (19:31 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 28 May 2015 08:28:41 +0000 (11:28 +0300)
commitf08766456b0e72bb16f9c52f9a33670b46c7ff32
tree2a5ce4a9cb6eff66d65020709de0bfd5546bca89
parent3ae35b89febe01d65d16bd71bd872735b4f21e14
brcmfmac: fix invalid access to struct acpi_device fields

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 type
   adev->flags.power_manageable = 0;
       ^

Fixes: 532a39d51f82 ("brcmfmac: prohibit ACPI power management ...")
Cc: Fu, Zhonghui <zhonghui.fu@linux.intel.com>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/brcm80211/brcmfmac/bcmsdh.c