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 <[email protected]>
Signed-off-by: Frederic Danis <[email protected]>
Signed-off-by: Marcel Holtmann <[email protected]>
{ },
};
+#ifdef CONFIG_ACPI
static int bcm_resource(struct acpi_resource *ares, void *data)
{
struct bcm_device *dev = data;
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)
{