From: Arend van Spriel Date: Wed, 27 May 2015 17:31:41 +0000 (+0200) Subject: brcmfmac: fix invalid access to struct acpi_device fields X-Git-Tag: omap-for-v4.3/legacy-v2-signed~163^2~139^2~13 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00e27eeb75bb91798225cfb1ab9f6b9e13d3d639;p=pandora-kernel.git 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: f0992ace680c ("brcmfmac: prohibit ACPI power management ...") Cc: Fu, Zhonghui Reported-by: Stephen Rothwell Signed-off-by: Arend van Spriel Signed-off-by: Kalle Valo --- Reading git-diff-tree failed