aboutsummaryrefslogtreecommitdiffstats
path: root/d04.patch
diff options
Diffstat (limited to 'd04.patch')
-rw-r--r--d04.patch44
1 files changed, 0 insertions, 44 deletions
diff --git a/d04.patch b/d04.patch
deleted file mode 100644
index 771266f5c58e0d..00000000000000
--- a/d04.patch
+++ /dev/null
@@ -1,44 +0,0 @@
-From foo@baz Thu Jun 8 15:02:58 CEST 2017
-Date: Thu, 08 Jun 2017 15:02:58 +0200
-To: Greg KH <gregkh@linuxfoundation.org>
-From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-Subject: TTY: hvc: convert to use DRIVER_ATTR_RW
-
-We are trying to get rid of DRIVER_ATTR(), and the hvc driver's
-attribute can be trivially changed to use DRIVER_ATTR_RW().
-
-Cc: Jiri Slaby <jslaby@suse.com>
-Cc: <linuxppc-dev@lists.ozlabs.org>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
----
- drivers/tty/hvc/hvcs.c | 7 +++----
- 1 file changed, 3 insertions(+), 4 deletions(-)
-
---- a/drivers/tty/hvc/hvcs.c
-+++ b/drivers/tty/hvc/hvcs.c
-@@ -484,13 +484,13 @@ static struct attribute_group hvcs_attr_
- .attrs = hvcs_attrs,
- };
-
--static ssize_t hvcs_rescan_show(struct device_driver *ddp, char *buf)
-+static ssize_t rescan_show(struct device_driver *ddp, char *buf)
- {
- /* A 1 means it is updating, a 0 means it is done updating */
- return snprintf(buf, PAGE_SIZE, "%d\n", hvcs_rescan_status);
- }
-
--static ssize_t hvcs_rescan_store(struct device_driver *ddp, const char * buf,
-+static ssize_t rescan_store(struct device_driver *ddp, const char * buf,
- size_t count)
- {
- if ((simple_strtol(buf, NULL, 0) != 1)
-@@ -505,8 +505,7 @@ static ssize_t hvcs_rescan_store(struct
- return count;
- }
-
--static DRIVER_ATTR(rescan,
-- S_IRUGO | S_IWUSR, hvcs_rescan_show, hvcs_rescan_store);
-+static DRIVER_ATTR_RW(rescan);
-
- static void hvcs_kick(void)
- {