diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-07-14 13:59:04 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-07-14 13:59:04 +0200 |
| commit | 5a7f345ba5e849229317f73497a17637c9a08e4a (patch) | |
| tree | 4d7661b70e4da95d2acfddce1ba76b7b3190cd3f /d03.patch | |
| parent | 1670862cd60c9110a93d8fdd186d4bfe51b185d1 (diff) | |
| download | patches-5a7f345ba5e849229317f73497a17637c9a08e4a.tar.gz | |
get a bunch of stuff finally upstream.
Diffstat (limited to 'd03.patch')
| -rw-r--r-- | d03.patch | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/d03.patch b/d03.patch deleted file mode 100644 index 481044ca9606d9..00000000000000 --- a/d03.patch +++ /dev/null @@ -1,54 +0,0 @@ -From foo@baz Thu Jun 8 15:02:52 CEST 2017 -Date: Thu, 08 Jun 2017 15:02:52 +0200 -To: Greg KH <gregkh@linuxfoundation.org> -From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> -Subject: PCI: pci-driver: convert to use DRIVER_ATTR_WO - -We are trying to get rid of DRIVER_ATTR(), and all of the pci-driver -core driver attributes can be trivially changed to use DRIVER_ATTR_WO(). - -Cc: Bjorn Helgaas <bhelgaas@google.com> -Cc: <linux-pci@vger.kernel.org> -Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> ---- - 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, |
