diff options
author | Narendra_K@Dell.com <Narendra_K@Dell.com> | 2011-03-07 15:55:56 -0500 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2011-03-16 13:22:56 -0400 |
commit | 07eefe1ca542129c24833c96ceb83b9aaa3b458d (patch) | |
tree | 158adfa7d7443e1124f0ad6c2416ad93b274463b /drivers | |
parent | c8adf9a3e873eddaaec11ac410a99ef6b9656938 (diff) |
PCI: label: Fix compilation error when CONFIG_ACPI is unset
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/pci/pci-label.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/pci/pci-label.c b/drivers/pci/pci-label.c index 824e247edc58..8c80138bb66f 100644 --- a/drivers/pci/pci-label.c +++ b/drivers/pci/pci-label.c | |||
@@ -174,6 +174,12 @@ pci_remove_acpi_index_label_files(struct pci_dev *pdev) | |||
174 | return -1; | 174 | return -1; |
175 | } | 175 | } |
176 | 176 | ||
177 | static inline bool | ||
178 | device_has_dsm(struct device *dev) | ||
179 | { | ||
180 | return false; | ||
181 | } | ||
182 | |||
177 | #else | 183 | #else |
178 | 184 | ||
179 | static const char device_label_dsm_uuid[] = { | 185 | static const char device_label_dsm_uuid[] = { |