projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f3b795
)
TTY: mark tty_get_device call with the proper const values
author
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 6 Feb 2013 23:59:18 +0000
(15:59 -0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 6 Feb 2013 23:59:18 +0000
(15:59 -0800)
Michał's previous patch missed this tty check to fix up the
class_find_device() arguments.
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Cc: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_io.c
patch
|
blob
|
history
diff --git
a/drivers/tty/tty_io.c
b/drivers/tty/tty_io.c
index
da9fde8
..
6b20fd6
100644
(file)
--- a/
drivers/tty/tty_io.c
+++ b/
drivers/tty/tty_io.c
@@
-2906,9
+2906,9
@@
void do_SAK(struct tty_struct *tty)
EXPORT_SYMBOL(do_SAK);
-static int dev_match_devt(struct device *dev, void *data)
+static int dev_match_devt(struct device *dev,
const
void *data)
{
- dev_t *devt = data;
+
const
dev_t *devt = data;
return dev->devt == *devt;
}