From: Adrian Bunk <bunk@fs.tum.de>
To: viro@parcelfarce.linux.theplanet.co.uk, Greg KH <greg@kroah.com>
Cc: linux-kernel@vger.kernel.org
Subject: [2.5 patch] kill the last occurances of usb_serial_get_by_minor
Date: Fri, 2 May 2003 17:37:23 +0200 [thread overview]
Message-ID: <20030502153723.GS21168@fs.tum.de> (raw)
I got an error at the final linking of 2.5.68-bk11. It seems the patch
below is needed.
cu
Adrian
--- linux-2.5.68-bk11/drivers/usb/serial/console.c.old 2003-05-02 17:27:06.000000000 +0200
+++ linux-2.5.68-bk11/drivers/usb/serial/console.c 2003-05-02 17:27:34.000000000 +0200
@@ -133,7 +133,7 @@
co->cflag = cflag;
/* grab the first serial port that happens to be connected */
- serial = usb_serial_get_by_minor (0);
+ serial = usb_serial_get_by_index(0);
if (serial_paranoia_check (serial, __FUNCTION__)) {
/* no device is connected yet, sorry :( */
err ("No USB device connected to ttyUSB0");
--- linux-2.5.68-bk11/drivers/usb/serial/usb-serial.h.old 2003-05-02 17:27:43.000000000 +0200
+++ linux-2.5.68-bk11/drivers/usb/serial/usb-serial.h 2003-05-02 17:28:13.000000000 +0200
@@ -280,7 +280,7 @@
#endif
/* Functions needed by other parts of the usbserial core */
-extern struct usb_serial *usb_serial_get_by_minor (unsigned int minor);
+extern struct usb_serial *usb_serial_get_by_index (unsigned int minor);
extern int usb_serial_generic_open (struct usb_serial_port *port, struct file *filp);
extern int usb_serial_generic_write (struct usb_serial_port *port, int from_user, const unsigned char *buf, int count);
extern void usb_serial_generic_close (struct usb_serial_port *port, struct file *filp);
next reply other threads:[~2003-05-02 15:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-02 15:37 Adrian Bunk [this message]
2003-05-02 16:04 ` [2.5 patch] kill the last occurances of usb_serial_get_by_minor Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030502153723.GS21168@fs.tum.de \
--to=bunk@fs.tum.de \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=viro@parcelfarce.linux.theplanet.co.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.