diff options
Diffstat (limited to 'drivers/usb/misc/legousbtower.c')
-rw-r--r-- | drivers/usb/misc/legousbtower.c | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/drivers/usb/misc/legousbtower.c b/drivers/usb/misc/legousbtower.c index 9370326a5940..ab0f3226158b 100644 --- a/drivers/usb/misc/legousbtower.c +++ b/drivers/usb/misc/legousbtower.c | |||
@@ -851,9 +851,8 @@ static int tower_probe (struct usb_interface *interface, const struct usb_device | |||
851 | 851 | ||
852 | dbg(2, "%s: enter", __func__); | 852 | dbg(2, "%s: enter", __func__); |
853 | 853 | ||
854 | if (udev == NULL) { | 854 | if (udev == NULL) |
855 | info ("udev is NULL."); | 855 | dev_info(&interface->dev, "udev is NULL.\n"); |
856 | } | ||
857 | 856 | ||
858 | /* allocate memory for our device state and initialize it */ | 857 | /* allocate memory for our device state and initialize it */ |
859 | 858 | ||
@@ -954,7 +953,9 @@ static int tower_probe (struct usb_interface *interface, const struct usb_device | |||
954 | dev->minor = interface->minor; | 953 | dev->minor = interface->minor; |
955 | 954 | ||
956 | /* let the user know what node this device is now attached to */ | 955 | /* let the user know what node this device is now attached to */ |
957 | info ("LEGO USB Tower #%d now attached to major %d minor %d", (dev->minor - LEGO_USB_TOWER_MINOR_BASE), USB_MAJOR, dev->minor); | 956 | dev_info(&interface->dev, "LEGO USB Tower #%d now attached to major " |
957 | "%d minor %d\n", (dev->minor - LEGO_USB_TOWER_MINOR_BASE), | ||
958 | USB_MAJOR, dev->minor); | ||
958 | 959 | ||
959 | /* get the firmware version and log it */ | 960 | /* get the firmware version and log it */ |
960 | result = usb_control_msg (udev, | 961 | result = usb_control_msg (udev, |
@@ -971,10 +972,10 @@ static int tower_probe (struct usb_interface *interface, const struct usb_device | |||
971 | retval = result; | 972 | retval = result; |
972 | goto error; | 973 | goto error; |
973 | } | 974 | } |
974 | info("LEGO USB Tower firmware version is %d.%d build %d", | 975 | dev_info(&interface->dev, "LEGO USB Tower firmware version is %d.%d " |
975 | get_version_reply.major, | 976 | "build %d\n", get_version_reply.major, |
976 | get_version_reply.minor, | 977 | get_version_reply.minor, |
977 | le16_to_cpu(get_version_reply.build_no)); | 978 | le16_to_cpu(get_version_reply.build_no)); |
978 | 979 | ||
979 | 980 | ||
980 | exit: | 981 | exit: |
@@ -1021,7 +1022,8 @@ static void tower_disconnect (struct usb_interface *interface) | |||
1021 | mutex_unlock(&dev->lock); | 1022 | mutex_unlock(&dev->lock); |
1022 | } | 1023 | } |
1023 | 1024 | ||
1024 | info("LEGO USB Tower #%d now disconnected", (minor - LEGO_USB_TOWER_MINOR_BASE)); | 1025 | dev_info(&interface->dev, "LEGO USB Tower #%d now disconnected\n", |
1026 | (minor - LEGO_USB_TOWER_MINOR_BASE)); | ||
1025 | 1027 | ||
1026 | dbg(2, "%s: leave", __func__); | 1028 | dbg(2, "%s: leave", __func__); |
1027 | } | 1029 | } |
@@ -1046,7 +1048,8 @@ static int __init lego_usb_tower_init(void) | |||
1046 | goto exit; | 1048 | goto exit; |
1047 | } | 1049 | } |
1048 | 1050 | ||
1049 | info(DRIVER_DESC " " DRIVER_VERSION); | 1051 | printk(KERN_INFO KBUILD_MODNAME ": " DRIVER_VERSION ":" |
1052 | DRIVER_DESC "\n"); | ||
1050 | 1053 | ||
1051 | exit: | 1054 | exit: |
1052 | dbg(2, "%s: leave, return value %d", __func__, retval); | 1055 | dbg(2, "%s: leave, return value %d", __func__, retval); |