]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
PCI: label: Fix compilation error when CONFIG_ACPI is unset
authorNarendra_K@Dell.com <Narendra_K@Dell.com>
Mon, 7 Mar 2011 20:55:56 +0000 (12:55 -0800)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 16 Mar 2011 17:22:56 +0000 (10:22 -0700)
This patch fixes compilation error descibed below introduced by
the commit 6058989bad05b82e78baacce69ec14f27a11b5fd

drivers/pci/pci-label.c: In function ‘pci_create_firmware_label_files’:
drivers/pci/pci-label.c:366:2: error: implicit declaration of function ‘device_has_dsm’

Signed-off-by: Narendra K <narendra_k@dell.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/pci-label.c

index 824e247edc5882bc0ce80e1a161909d972bb4391..8c80138bb66f44bb8eb792e79c59c11fb55786e9 100644 (file)
@@ -174,6 +174,12 @@ pci_remove_acpi_index_label_files(struct pci_dev *pdev)
        return -1;
 }
 
+static inline bool
+device_has_dsm(struct device *dev)
+{
+       return false;
+}
+
 #else
 
 static const char device_label_dsm_uuid[] = {