diff options
Diffstat (limited to 'include/linux/serdev.h')
-rw-r--r-- | include/linux/serdev.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/linux/serdev.h b/include/linux/serdev.h index e2a225bf716d..e69402d4a8ae 100644 --- a/include/linux/serdev.h +++ b/include/linux/serdev.h | |||
@@ -308,7 +308,7 @@ struct tty_driver; | |||
308 | struct device *serdev_tty_port_register(struct tty_port *port, | 308 | struct device *serdev_tty_port_register(struct tty_port *port, |
309 | struct device *parent, | 309 | struct device *parent, |
310 | struct tty_driver *drv, int idx); | 310 | struct tty_driver *drv, int idx); |
311 | void serdev_tty_port_unregister(struct tty_port *port); | 311 | int serdev_tty_port_unregister(struct tty_port *port); |
312 | #else | 312 | #else |
313 | static inline struct device *serdev_tty_port_register(struct tty_port *port, | 313 | static inline struct device *serdev_tty_port_register(struct tty_port *port, |
314 | struct device *parent, | 314 | struct device *parent, |
@@ -316,7 +316,10 @@ static inline struct device *serdev_tty_port_register(struct tty_port *port, | |||
316 | { | 316 | { |
317 | return ERR_PTR(-ENODEV); | 317 | return ERR_PTR(-ENODEV); |
318 | } | 318 | } |
319 | static inline void serdev_tty_port_unregister(struct tty_port *port) {} | 319 | static inline int serdev_tty_port_unregister(struct tty_port *port) |
320 | { | ||
321 | return -ENODEV; | ||
322 | } | ||
320 | #endif /* CONFIG_SERIAL_DEV_CTRL_TTYPORT */ | 323 | #endif /* CONFIG_SERIAL_DEV_CTRL_TTYPORT */ |
321 | 324 | ||
322 | #endif /*_LINUX_SERDEV_H */ | 325 | #endif /*_LINUX_SERDEV_H */ |