diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-11-28 17:15:12 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-11-28 17:15:12 +0100 |
| commit | 3c37d678907cad7f656ff2d3f1d7d9781cf90b58 (patch) | |
| tree | d13e7cf127bf245f02051652a18a6c4a81676903 /d03.patch | |
| parent | 8617ccb8a6b3029e50b9fa2c8097a7e7ab88fc6b (diff) | |
| download | patches-3c37d678907cad7f656ff2d3f1d7d9781cf90b58.tar.gz | |
old patches broken up and refreshed
Diffstat (limited to 'd03.patch')
| -rw-r--r-- | d03.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/d03.patch b/d03.patch new file mode 100644 index 00000000000000..884f2fa3b2dad3 --- /dev/null +++ b/d03.patch @@ -0,0 +1,42 @@ +--- + drivers/pci/pci-driver.c | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +--- a/drivers/pci/pci-driver.c ++++ b/drivers/pci/pci-driver.c +@@ -96,7 +96,7 @@ static void pci_free_dynids(struct pci_d + * + * Allow PCI IDs to be added to an existing driver via sysfs. + */ +-static ssize_t store_new_id(struct device_driver *driver, const char *buf, ++static ssize_t new_id_store(struct device_driver *driver, const char *buf, + size_t count) + { + struct pci_driver *pdrv = to_pci_driver(driver); +@@ -154,7 +154,7 @@ static ssize_t store_new_id(struct devic + return retval; + return count; + } +-static DRIVER_ATTR(new_id, S_IWUSR, NULL, store_new_id); ++static DRIVER_ATTR_WO(new_id); + + /** + * store_remove_id - remove a PCI device ID from this driver +@@ -164,7 +164,7 @@ static DRIVER_ATTR(new_id, S_IWUSR, NULL + * + * Removes a dynamic pci device ID to this driver. + */ +-static ssize_t store_remove_id(struct device_driver *driver, const char *buf, ++static ssize_t remove_id_store(struct device_driver *driver, const char *buf, + size_t count) + { + struct pci_dynid *dynid, *n; +@@ -198,7 +198,7 @@ static ssize_t store_remove_id(struct de + + return retval; + } +-static DRIVER_ATTR(remove_id, S_IWUSR, NULL, store_remove_id); ++static DRIVER_ATTR_WO(remove_id); + + static struct attribute *pci_drv_attrs[] = { + &driver_attr_new_id.attr, |
