Re: [PATCH 1/2] Bluetooth: hci_bcm: fix build error without CONFIG_PM

From: Marcel Holtmann
Date: Wed Oct 11 2017 - 14:11:29 EST


Hi Arnd,

> This was introduced by the rework adding PM support:
>
> drivers/bluetooth/hci_bcm.c: In function 'bcm_device_exists':
> drivers/bluetooth/hci_bcm.c:156:22: error: 'struct bcm_device' has no member named 'hu'
> if (device && device->hu && device->hu->serdev)
> ^~
>
> The pointer is not available otherwise, so I'm enclosing
> all references in an #ifdef here.
>
> Fixes: 8a92056837fd ("Bluetooth: hci_bcm: Add (runtime)pm support to the serdev driver")
> Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
> ---
> drivers/bluetooth/hci_bcm.c | 4 ++++
> 1 file changed, 4 insertions(+)

both patches have been applied to bluetooth-next tree.

Regards

Marcel