diff options
author | Phong Tran <tranmanphong@gmail.com> | 2015-06-09 20:28:18 +0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2015-06-09 13:35:47 -0700 |
commit | 61b65a394cdbf5ed9117ad0da184a3f90a9b914a (patch) | |
tree | e9322bad43dc52cf6010eab29510a8c63675f254 /drivers/staging/greybus/uart.c | |
parent | f2e2b06fefe448de14cc009f865d879a8c334f4d (diff) | |
download | op-kernel-dev-61b65a394cdbf5ed9117ad0da184a3f90a9b914a.zip op-kernel-dev-61b65a394cdbf5ed9117ad0da184a3f90a9b914a.tar.gz |
greybus: uart: remove the redundant unregister chrdev
The unregister_chrdev_region() does twice here.
The chrdev region was unregistered
inside tty_unregister_driver().
Signed-off-by: Phong Tran <tranmanphong@gmail.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/uart.c')
-rw-r--r-- | drivers/staging/greybus/uart.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/staging/greybus/uart.c b/drivers/staging/greybus/uart.c index 6db4993..7e94632a 100644 --- a/drivers/staging/greybus/uart.c +++ b/drivers/staging/greybus/uart.c @@ -732,12 +732,8 @@ fail_unregister_dev: static void gb_tty_exit(void) { - int major = MAJOR(gb_tty_driver->major); - int minor = gb_tty_driver->minor_start; - tty_unregister_driver(gb_tty_driver); put_tty_driver(gb_tty_driver); - unregister_chrdev_region(MKDEV(major, minor), GB_NUM_MINORS); } static struct gb_protocol uart_protocol = { |