aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/console.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-04-20 19:53:58 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-04-20 19:53:58 -0400
commit085fb962623b7278fd2f33a8604c37dd22d06b70 (patch)
treef96d0d64e11b644ffa3ab15a6d235b609397f44f /drivers/usb/serial/console.c
parent45714104b9e85ffa199c5622e227657e99d92fb5 (diff)
USB: console.c: remove err() usage
err() was a very old USB-specific macro that I thought had gone away. This patch removes it from being used in the driver and uses dev_err() instead. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial/console.c')
-rw-r--r--drivers/usb/serial/console.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/usb/serial/console.c b/drivers/usb/serial/console.c
index 1ee6b2ab0f89..b9cca6dcde07 100644
--- a/drivers/usb/serial/console.c
+++ b/drivers/usb/serial/console.c
@@ -113,7 +113,8 @@ static int usb_console_setup(struct console *co, char *options)
113 serial = usb_serial_get_by_index(co->index); 113 serial = usb_serial_get_by_index(co->index);
114 if (serial == NULL) { 114 if (serial == NULL) {
115 /* no device is connected yet, sorry :( */ 115 /* no device is connected yet, sorry :( */
116 err("No USB device connected to ttyUSB%i", co->index); 116 printk(KERN_ERR "No USB device connected to ttyUSB%i\n",
117 co->index);
117 return -ENODEV; 118 return -ENODEV;
118 } 119 }
119 120
@@ -137,7 +138,7 @@ static int usb_console_setup(struct console *co, char *options)
137 tty = kzalloc(sizeof(*tty), GFP_KERNEL); 138 tty = kzalloc(sizeof(*tty), GFP_KERNEL);
138 if (!tty) { 139 if (!tty) {
139 retval = -ENOMEM; 140 retval = -ENOMEM;
140 err("no more memory"); 141 dev_err(&port->dev, "no more memory\n");
141 goto reset_open_count; 142 goto reset_open_count;
142 } 143 }
143 kref_init(&tty->kref); 144 kref_init(&tty->kref);
@@ -146,7 +147,7 @@ static int usb_console_setup(struct console *co, char *options)
146 tty->index = co->index; 147 tty->index = co->index;
147 if (tty_init_termios(tty)) { 148 if (tty_init_termios(tty)) {
148 retval = -ENOMEM; 149 retval = -ENOMEM;
149 err("no more memory"); 150 dev_err(&port->dev, "no more memory\n");
150 goto free_tty; 151 goto free_tty;
151 } 152 }
152 } 153 }
@@ -159,7 +160,7 @@ static int usb_console_setup(struct console *co, char *options)
159 retval = usb_serial_generic_open(NULL, port); 160 retval = usb_serial_generic_open(NULL, port);
160 161
161 if (retval) { 162 if (retval) {
162 err("could not open USB console port"); 163 dev_err(&port->dev, "could not open USB console port\n");
163 goto fail; 164 goto fail;
164 } 165 }
165 166