Bluetooth: hci_bcm: Fix "implicit declaration"
authorFrederic Danis <frederic.danis@linux.intel.com>
Wed, 12 Aug 2015 10:46:01 +0000 (12:46 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 12 Aug 2015 14:41:32 +0000 (16:41 +0200)
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>
drivers/bluetooth/hci_bcm.c

index 6070303418d89d28564985feab5fdb63c697c92f..322302b04710f1764fd339247f0ee32aed924743 100644 (file)
@@ -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)
 {