usb_set_intfdata(interface, dev);
// let the user know what node this device is now attached to
- info("USB DT9812 (%4.4x.%4.4x.%4.4x) #0x%8.8x",
+ dev_info(&interface->dev, "USB DT9812 (%4.4x.%4.4x.%4.4x) #0x%8.8x\n",
dev->vendor, dev->product, dev->device, dev->serial);
down(&dt9812_mutex);
/* queue final destruction */
kref_put(&dev->kref, dt9812_delete);
- info("USB Dt9812 #%d now disconnected", minor);
+ dev_info(&interface->dev, "USB Dt9812 #%d now disconnected\n", minor);
}
static struct usb_driver dt9812_usb_driver = {
// registering the usb-system _and_ the comedi-driver
static int init_usbdux(void)
{
- info(DRIVER_VERSION ":" DRIVER_DESC);
+ printk(KERN_INFO KBUILD_MODNAME ": "
+ DRIVER_VERSION ":" DRIVER_DESC "\n");
init_usb_devices();
usb_register(&usbduxsub_driver);
comedi_driver_register(&driver_usbdux);
// registering the usb-system _and_ the comedi-driver
static int init_usbduxfast(void)
{
- info(DRIVER_VERSION ":" DRIVER_DESC);
+ printk(KERN_INFO KBUILD_MODNAME ": "
+ DRIVER_VERSION ":" DRIVER_DESC "\n");
init_usb_devices();
usb_register(&usbduxfastsub_driver);
comedi_driver_register(&driver_usbduxfast);