Commit 396ec3de authored by Sudip Mukherjee's avatar Sudip Mukherjee Committed by Greg Kroah-Hartman

ppdev: use dev_* macros

It is more preffered to use the dev_* family of macros instead of using
the generic pr_*.
Signed-off-by: default avatarSudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e7223f18
...@@ -313,7 +313,7 @@ static int register_device(int minor, struct pp_struct *pp) ...@@ -313,7 +313,7 @@ static int register_device(int minor, struct pp_struct *pp)
} }
pp->pdev = pdev; pp->pdev = pdev;
pr_debug("%s: registered pardevice\n", name); dev_dbg(&pdev->dev, "registered pardevice\n");
return 0; return 0;
} }
...@@ -359,7 +359,7 @@ static int pp_do_ioctl(struct file *file, unsigned int cmd, unsigned long arg) ...@@ -359,7 +359,7 @@ static int pp_do_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
int ret; int ret;
if (pp->flags & PP_CLAIMED) { if (pp->flags & PP_CLAIMED) {
pr_debug(CHRDEV "%x: you've already got it!\n", minor); dev_dbg(&pp->pdev->dev, "you've already got it!\n");
return -EINVAL; return -EINVAL;
} }
...@@ -394,8 +394,8 @@ static int pp_do_ioctl(struct file *file, unsigned int cmd, unsigned long arg) ...@@ -394,8 +394,8 @@ static int pp_do_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
} }
case PPEXCL: case PPEXCL:
if (pp->pdev) { if (pp->pdev) {
pr_debug(CHRDEV "%x: too late for PPEXCL; " dev_dbg(&pp->pdev->dev,
"already registered\n", minor); "too late for PPEXCL; already registered\n");
if (pp->flags & PP_EXCL) if (pp->flags & PP_EXCL)
/* But it's not really an error. */ /* But it's not really an error. */
return 0; return 0;
...@@ -647,7 +647,7 @@ static int pp_do_ioctl(struct file *file, unsigned int cmd, unsigned long arg) ...@@ -647,7 +647,7 @@ static int pp_do_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
return 0; return 0;
default: default:
pr_debug(CHRDEV "%x: What? (cmd=0x%x)\n", minor, cmd); dev_dbg(&pp->pdev->dev, "What? (cmd=0x%x)\n", cmd);
return -EINVAL; return -EINVAL;
} }
...@@ -728,8 +728,8 @@ static int pp_release(struct inode *inode, struct file *file) ...@@ -728,8 +728,8 @@ static int pp_release(struct inode *inode, struct file *file)
} }
if (compat_negot) { if (compat_negot) {
parport_negotiate(pp->pdev->port, IEEE1284_MODE_COMPAT); parport_negotiate(pp->pdev->port, IEEE1284_MODE_COMPAT);
pr_debug(CHRDEV "%x: negotiated back to compatibility " dev_dbg(&pp->pdev->dev,
"mode because user-space forgot\n", minor); "negotiated back to compatibility mode because user-space forgot\n");
} }
if (pp->flags & PP_CLAIMED) { if (pp->flags & PP_CLAIMED) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment