diff options
Diffstat (limited to 'drivers/pci/pci-sysfs.c')
-rw-r--r-- | drivers/pci/pci-sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pci-sysfs.c b/drivers/pci/pci-sysfs.c index 63d5042f2079..8ecaac983923 100644 --- a/drivers/pci/pci-sysfs.c +++ b/drivers/pci/pci-sysfs.c | |||
@@ -1149,7 +1149,7 @@ int __must_check pci_create_sysfs_dev_files (struct pci_dev *pdev) | |||
1149 | sysfs_bin_attr_init(attr); | 1149 | sysfs_bin_attr_init(attr); |
1150 | attr->size = rom_size; | 1150 | attr->size = rom_size; |
1151 | attr->attr.name = "rom"; | 1151 | attr->attr.name = "rom"; |
1152 | attr->attr.mode = S_IRUSR; | 1152 | attr->attr.mode = S_IRUSR | S_IWUSR; |
1153 | attr->read = pci_read_rom; | 1153 | attr->read = pci_read_rom; |
1154 | attr->write = pci_write_rom; | 1154 | attr->write = pci_write_rom; |
1155 | retval = sysfs_create_bin_file(&pdev->dev.kobj, attr); | 1155 | retval = sysfs_create_bin_file(&pdev->dev.kobj, attr); |