Skip to content

Commit

Permalink
TTY: mark tty_get_device call with the proper const values
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Greg Kroah-Hartman committed Feb 6, 2013
1 parent 9f3b795 commit 6e9430a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/tty/tty_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 6e9430a

Please sign in to comment.