Commit 3086365d authored by Rob Herring's avatar Rob Herring Committed by Greg Kroah-Hartman

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: default avatarRob Herring <robh@kernel.org>
Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-By: default avatarSebastian Reichel <sre@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ed3f0af8
...@@ -67,8 +67,7 @@ struct device *tty_port_register_device(struct tty_port *port, ...@@ -67,8 +67,7 @@ struct device *tty_port_register_device(struct tty_port *port,
struct tty_driver *driver, unsigned index, struct tty_driver *driver, unsigned index,
struct device *device) struct device *device)
{ {
tty_port_link_device(port, driver, index); return tty_port_register_device_attr(port, driver, index, device, NULL, NULL);
return tty_register_device(driver, index, device);
} }
EXPORT_SYMBOL_GPL(tty_port_register_device); EXPORT_SYMBOL_GPL(tty_port_register_device);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment