mirror of https://github.com/nirenjan/libx52.git
Merge pull request #3 from nirenjan/deprecated-macros
Replace err/dbg macros with pr_err/pr_debugpull/7/head v0.0.2
commit
0ad08ac623
|
@ -578,7 +578,7 @@ static int __init x52_init(void)
|
|||
|
||||
retval = usb_register(&x52_driver);
|
||||
if (retval) {
|
||||
err("usb_register failed (errno=%d)\n", retval);
|
||||
pr_err("usb_register failed (errno=%d)\n", retval);
|
||||
}
|
||||
|
||||
return retval;
|
||||
|
|
|
@ -150,11 +150,13 @@ void x52_irq_handler(struct urb *urb)
|
|||
case -ENOENT:
|
||||
case -ESHUTDOWN:
|
||||
/* This URB is terminated, clean up */
|
||||
dbg("%s - URB shutting down with status: %d",
|
||||
dev_dbg(joy->idev->dev.parent,
|
||||
"%s - URB shutting down with status: %d",
|
||||
__func__, status);
|
||||
return;
|
||||
default:
|
||||
dbg("%s - nonzero URB status received: %d",
|
||||
dev_dbg(joy->idev->dev.parent,
|
||||
"%s - nonzero URB status received: %d",
|
||||
__func__, status);
|
||||
goto error;
|
||||
}
|
||||
|
@ -172,8 +174,9 @@ void x52_irq_handler(struct urb *urb)
|
|||
error:
|
||||
retval = usb_submit_urb(urb, GFP_ATOMIC);
|
||||
if (retval)
|
||||
err ("%s - usb_submit_urb failed with result %d",
|
||||
__func__, retval);
|
||||
dev_err(joy->idev->dev.parent,
|
||||
"%s - usb_submit_urb failed with result %d",
|
||||
__func__, retval);
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue