* [PATCH] Staging: comedi: fixed printk coding style issue in acl7225b.c
@ 2012-06-23 2:51 Daniel Lawrence
2012-06-23 3:48 ` Greg KH
2012-06-23 3:50 ` Greg KH
0 siblings, 2 replies; 3+ messages in thread
From: Daniel Lawrence @ 2012-06-23 2:51 UTC (permalink / raw)
To: abbotti, fmhess, gregkh, hsweeten; +Cc: daniel, devel, linux-kernel
This is a patch to the acl7225.b file that fixes up 2 printk warnings
found by the checkpatch.pl tool.
As this is a comedi driver the printk's have been changed to the
dev_printk style.
Signed-off-by: Daniel Lawrence <daniel@danielscottlawrence.com>
---
drivers/staging/comedi/drivers/acl7225b.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/comedi/drivers/acl7225b.c b/drivers/staging/comedi/drivers/acl7225b.c
index 4e4fc41..ca74519 100644
--- a/drivers/staging/comedi/drivers/acl7225b.c
+++ b/drivers/staging/comedi/drivers/acl7225b.c
@@ -72,11 +72,11 @@ static int acl7225b_attach(struct comedi_device *dev,
iobase = it->options[0];
iorange = this_board->io_range;
- printk(KERN_INFO "comedi%d: acl7225b: board=%s 0x%04x\n", dev->minor,
+ dev_info(dev->class_dev, "acl7225b: board=%s 0x%04x\n",
this_board->name, iobase);
if (!request_region(iobase, iorange, "acl7225b")) {
- printk(KERN_ERR "comedi%d: request_region failed - I/O port conflict\n",
- dev->minor);
+ dev_err(dev->class_dev,
+ "request_region failed - I/O port conflict\n");
return -EIO;
}
dev->board_name = this_board->name;
--
1.7.9.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Staging: comedi: fixed printk coding style issue in acl7225b.c
2012-06-23 2:51 [PATCH] Staging: comedi: fixed printk coding style issue in acl7225b.c Daniel Lawrence
@ 2012-06-23 3:48 ` Greg KH
2012-06-23 3:50 ` Greg KH
1 sibling, 0 replies; 3+ messages in thread
From: Greg KH @ 2012-06-23 3:48 UTC (permalink / raw)
To: Daniel Lawrence; +Cc: abbotti, fmhess, hsweeten, devel, linux-kernel
On Sat, Jun 23, 2012 at 12:51:43PM +1000, Daniel Lawrence wrote:
> This is a patch to the acl7225.b file that fixes up 2 printk warnings
> found by the checkpatch.pl tool.
> As this is a comedi driver the printk's have been changed to the
> dev_printk style.
>
> Signed-off-by: Daniel Lawrence <daniel@danielscottlawrence.com>
> ---
> drivers/staging/comedi/drivers/acl7225b.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
As this is a "version 2" of this patch, next time please say so in the
subject so I know not to apply the first one. A simple:
Subject: [PATCH v2] ...
would suffice.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Staging: comedi: fixed printk coding style issue in acl7225b.c
2012-06-23 2:51 [PATCH] Staging: comedi: fixed printk coding style issue in acl7225b.c Daniel Lawrence
2012-06-23 3:48 ` Greg KH
@ 2012-06-23 3:50 ` Greg KH
1 sibling, 0 replies; 3+ messages in thread
From: Greg KH @ 2012-06-23 3:50 UTC (permalink / raw)
To: Daniel Lawrence; +Cc: abbotti, fmhess, hsweeten, devel, linux-kernel
On Sat, Jun 23, 2012 at 12:51:43PM +1000, Daniel Lawrence wrote:
> This is a patch to the acl7225.b file that fixes up 2 printk warnings
> found by the checkpatch.pl tool.
> As this is a comedi driver the printk's have been changed to the
> dev_printk style.
>
> Signed-off-by: Daniel Lawrence <daniel@danielscottlawrence.com>
> ---
> drivers/staging/comedi/drivers/acl7225b.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
This patch does not apply properly, what tree did you make it against?
Can you please redo it against the latest linux-next tree and resend it
so that I can apply it?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-06-23 3:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-23 2:51 [PATCH] Staging: comedi: fixed printk coding style issue in acl7225b.c Daniel Lawrence
2012-06-23 3:48 ` Greg KH
2012-06-23 3:50 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox