2008-06-18 17:02:56

by Will Newton

[permalink] [raw]
Subject: [PATCH] sisusbvga: Fix oops on disconnect.

Remove the message printed with dev_info on disconnect after sisusb_dev has
potentially been zeroed by sisusb_delete. The message does not provide
any extra information over that which the USB subsystem prints as standard
so just kill it.

Signed-off-by: Will Newton <[email protected]>
---
drivers/usb/misc/sisusbvga/sisusb.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/drivers/usb/misc/sisusbvga/sisusb.c b/drivers/usb/misc/sisusbvga/sisusb.c
index cb7fa0e..33182f4 100644
--- a/drivers/usb/misc/sisusbvga/sisusb.c
+++ b/drivers/usb/misc/sisusbvga/sisusb.c
@@ -3264,8 +3264,6 @@ static void sisusb_disconnect(struct usb_interface *intf)

/* decrement our usage count */
kref_put(&sisusb->kref, sisusb_delete);
-
- dev_info(&sisusb->sisusb_dev->dev, "Disconnected\n");
}

static struct usb_device_id sisusb_table [] = {
--
1.5.5.2