diff options
author | Jiri Slaby <jslaby@suse.cz> | 2012-08-14 04:23:08 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-08-14 09:46:33 -0400 |
commit | a33ba827460cdab644e907fc0c740dc7fde56c17 (patch) | |
tree | 1d4cb212069b4edede14cb1f6890d0c05d821e45 /drivers/char/pcmcia | |
parent | a342ca1c78627c3a8b2a8c4e6d5f6ab1b88e6169 (diff) |
TTY: synclink_cs, fix build
Commit "TTY: synclink_cs, use dynamic tty devices" added a call to
tty_port_register_device with a proper device as the last argument.
But it was not correct and it causes build failures:
synclink_cs.c: In function ‘mgslpc_add_device’:
synclink_cs.c:2735:16: error: request for member ‘dev’ in something not a structure or union
info->p_dev is a pointer, so act as that.
I wonder why my build scripts did not notice. I have to re-check them.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/char/pcmcia')
-rw-r--r-- | drivers/char/pcmcia/synclink_cs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/pcmcia/synclink_cs.c b/drivers/char/pcmcia/synclink_cs.c index 923c3a47db0c..d9335ae1fadf 100644 --- a/drivers/char/pcmcia/synclink_cs.c +++ b/drivers/char/pcmcia/synclink_cs.c | |||
@@ -2732,7 +2732,7 @@ static void mgslpc_add_device(MGSLPC_INFO *info) | |||
2732 | hdlcdev_init(info); | 2732 | hdlcdev_init(info); |
2733 | #endif | 2733 | #endif |
2734 | tty_port_register_device(&info->port, serial_driver, info->line, | 2734 | tty_port_register_device(&info->port, serial_driver, info->line, |
2735 | &info->p_dev.dev); | 2735 | &info->p_dev->dev); |
2736 | } | 2736 | } |
2737 | 2737 | ||
2738 | static void mgslpc_remove_device(MGSLPC_INFO *remove_info) | 2738 | static void mgslpc_remove_device(MGSLPC_INFO *remove_info) |