diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-02-06 18:59:18 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-02-06 18:59:18 -0500 |
commit | 6e9430ac57e8c1f41ab24ef7fbb3d452c7eb7246 (patch) | |
tree | 779ec47d873f409d4030ae4e5e99fd1c8715ec36 /drivers/tty/tty_io.c | |
parent | 9f3b795a626ee79574595e06d1437fe0c7d51d29 (diff) |
TTY: mark tty_get_device call with the proper const values
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>
Diffstat (limited to 'drivers/tty/tty_io.c')
-rw-r--r-- | drivers/tty/tty_io.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tty/tty_io.c b/drivers/tty/tty_io.c index da9fde850754..6b20fd66d4ad 100644 --- a/drivers/tty/tty_io.c +++ b/drivers/tty/tty_io.c | |||
@@ -2906,9 +2906,9 @@ void do_SAK(struct tty_struct *tty) | |||
2906 | 2906 | ||
2907 | EXPORT_SYMBOL(do_SAK); | 2907 | EXPORT_SYMBOL(do_SAK); |
2908 | 2908 | ||
2909 | static int dev_match_devt(struct device *dev, void *data) | 2909 | static int dev_match_devt(struct device *dev, const void *data) |
2910 | { | 2910 | { |
2911 | dev_t *devt = data; | 2911 | const dev_t *devt = data; |
2912 | return dev->devt == *devt; | 2912 | return dev->devt == *devt; |
2913 | } | 2913 | } |
2914 | 2914 | ||