aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci-sysfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci/pci-sysfs.c')
-rw-r--r--drivers/pci/pci-sysfs.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/pci/pci-sysfs.c b/drivers/pci/pci-sysfs.c
index f7692dc531e4..b5a7d9bfcb24 100644
--- a/drivers/pci/pci-sysfs.c
+++ b/drivers/pci/pci-sysfs.c
@@ -1165,6 +1165,8 @@ int __must_check pci_create_sysfs_dev_files (struct pci_dev *pdev)
1165 if (retval) 1165 if (retval)
1166 goto err_vga_file; 1166 goto err_vga_file;
1167 1167
1168 pci_create_firmware_label_files(pdev);
1169
1168 return 0; 1170 return 0;
1169 1171
1170err_vga_file: 1172err_vga_file:
@@ -1232,6 +1234,9 @@ void pci_remove_sysfs_dev_files(struct pci_dev *pdev)
1232 sysfs_remove_bin_file(&pdev->dev.kobj, pdev->rom_attr); 1234 sysfs_remove_bin_file(&pdev->dev.kobj, pdev->rom_attr);
1233 kfree(pdev->rom_attr); 1235 kfree(pdev->rom_attr);
1234 } 1236 }
1237
1238 pci_remove_firmware_label_files(pdev);
1239
1235} 1240}
1236 1241
1237static int __init pci_sysfs_init(void) 1242static int __init pci_sysfs_init(void)