Bluetooth: hci_bcm: Move platform_get_irq call to bcm_probe
authorHans de Goede <hdegoede@redhat.com>
Wed, 4 Oct 2017 18:43:38 +0000 (20:43 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 6 Oct 2017 18:35:48 +0000 (20:35 +0200)
commit4a56f891efceee88d422af2e99d00c8321c671c1
tree911dcf77650efaa1adad158a2a78b501d3c543fb
parent201762e21f308ec23bebe8bc0c4c033afb2879d5
Bluetooth: hci_bcm: Move platform_get_irq call to bcm_probe

The ACPI subsys is going to move over to instantiating ACPI enumerated
HCIs as serdevs, rather then as platform devices.

Most of the code in bcm_platform_probe is actually not platform
specific and will work with any struct device passed to it, the one
platform specific call in bcm_platform_probe is platform_get_irq.

This commit moves platform_get_irq call to the platform-driver's bcm_probe
function, this is a preparation patch for adding (runtime)pm support to
the serdev path.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/hci_bcm.c