]> git.baikalelectronics.ru Git - kernel.git/commit
tty_port: make tty_port_register_device wrap tty_port_register_device_attr
authorRob Herring <robh@kernel.org>
Mon, 16 Jan 2017 22:54:30 +0000 (16:54 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jan 2017 16:22:34 +0000 (17:22 +0100)
commit22702ae862fd9e4a0b671ce06a581f7db5a34d5a
tree14d7a883b3b6fa34560f989279c95eece290d99f
parentc289f7e1b0a1e3f35141577d332d9103fc1b0eb4
tty_port: make tty_port_register_device wrap tty_port_register_device_attr

tty_register_device is just a wrapper for tty_register_device_attr with
NULL passed for drvdata and attr_grp. So similarly make
tty_port_register_device a wrapper of tty_port_register_device_attr so that
additions don't have to be made in both functions.

Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-By: Sebastian Reichel <sre@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_port.c