diff options
author | Frederic Danis <frederic.danis@linux.intel.com> | 2015-08-12 12:46:01 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-08-12 16:41:32 +0200 |
commit | 50d78bcf5d06871a0b3adcb3cbec6e6ca33f226a (patch) | |
tree | 4a6fb5a68c23dc8b0c9f0f3654be627c3a86f8d9 /drivers/bluetooth/hci_bcm.c | |
parent | 62aaefa7d03804aef30639ab362f845b1f3e92ed (diff) |
Bluetooth: hci_bcm: Fix "implicit declaration"
The kbuild test robot reported implicit declaration of function
'acpi_dev_get_resources'.
Surround ACPI function by CONFIG_ACPI test.
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Frederic Danis <frederic.danis@linux.intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth/hci_bcm.c')
-rw-r--r-- | drivers/bluetooth/hci_bcm.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/bluetooth/hci_bcm.c b/drivers/bluetooth/hci_bcm.c index 6070303418d8..322302b04710 100644 --- a/drivers/bluetooth/hci_bcm.c +++ b/drivers/bluetooth/hci_bcm.c @@ -388,6 +388,7 @@ static const struct acpi_gpio_mapping acpi_bcm_default_gpios[] = { { }, }; +#ifdef CONFIG_ACPI static int bcm_resource(struct acpi_resource *ares, void *data) { struct bcm_device *dev = data; @@ -453,6 +454,12 @@ static int bcm_acpi_probe(struct bcm_device *dev) return 0; } +#else +static int bcm_acpi_probe(struct bcm_device *dev) +{ + return -EINVAL; +} +#endif /* CONFIG_ACPI */ static int bcm_probe(struct platform_device *pdev) { |