mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 03:53:37 +02:00
tty: Remove unused API tty_port_register_device_serdev()
Remove API tty_port_register_device_serdev() which has no caller. Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com> Reviewed-by: Jiri Slaby <jirislaby@kernel.org> Link: https://lore.kernel.org/r/20250423-remove_api-v1-1-fac673d09feb@quicinc.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
05f31711af
commit
be4e3097c1
|
|
@ -199,26 +199,6 @@ struct device *tty_port_register_device_attr_serdev(struct tty_port *port,
|
|||
}
|
||||
EXPORT_SYMBOL_GPL(tty_port_register_device_attr_serdev);
|
||||
|
||||
/**
|
||||
* tty_port_register_device_serdev - register tty or serdev device
|
||||
* @port: tty_port of the device
|
||||
* @driver: tty_driver for this device
|
||||
* @index: index of the tty
|
||||
* @host: serial port hardware controller device
|
||||
* @parent: parent if exists, otherwise NULL
|
||||
*
|
||||
* Register a serdev or tty device depending on if the parent device has any
|
||||
* defined serdev clients or not.
|
||||
*/
|
||||
struct device *tty_port_register_device_serdev(struct tty_port *port,
|
||||
struct tty_driver *driver, unsigned index,
|
||||
struct device *host, struct device *parent)
|
||||
{
|
||||
return tty_port_register_device_attr_serdev(port, driver, index,
|
||||
host, parent, NULL, NULL);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(tty_port_register_device_serdev);
|
||||
|
||||
/**
|
||||
* tty_port_unregister_device - deregister a tty or serdev device
|
||||
* @port: tty_port of the device
|
||||
|
|
|
|||
|
|
@ -147,9 +147,6 @@ struct device *tty_port_register_device_attr(struct tty_port *port,
|
|||
struct tty_driver *driver, unsigned index,
|
||||
struct device *device, void *drvdata,
|
||||
const struct attribute_group **attr_grp);
|
||||
struct device *tty_port_register_device_serdev(struct tty_port *port,
|
||||
struct tty_driver *driver, unsigned index,
|
||||
struct device *host, struct device *parent);
|
||||
struct device *tty_port_register_device_attr_serdev(struct tty_port *port,
|
||||
struct tty_driver *driver, unsigned index,
|
||||
struct device *host, struct device *parent, void *drvdata,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user