* [PATCH 2/2] Staging: xillybus: fix for quoted string split across lines
@ 2013-10-16 17:57 Dhanunjaya
2013-10-16 18:06 ` Greg KH
0 siblings, 1 reply; 4+ messages in thread
From: Dhanunjaya @ 2013-10-16 17:57 UTC (permalink / raw)
To: eli.billauer, gregkh; +Cc: devel, linux-kernel, Dhanunjaya
This is a patch to the xillybus_of.c file that fixes up a
quoted string split across lines warning found by the
checkpatch.pl tool.
Signed-off-by: Dhanunjaya <dhanunjaya.matrix@gmail.com>
---
drivers/staging/xillybus/xillybus_of.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/staging/xillybus/xillybus_of.c b/drivers/staging/xillybus/xillybus_of.c
index 92c2931..822ef4d 100644
--- a/drivers/staging/xillybus/xillybus_of.c
+++ b/drivers/staging/xillybus/xillybus_of.c
@@ -117,8 +117,7 @@ static int xilly_drv_probe(struct platform_device *op)
rc = of_address_to_resource(dev->of_node, 0, &endpoint->res);
if (rc) {
- pr_warn("xillybus: Failed to obtain device tree "
- "resource\n");
+ pr_warn("xillybus: Failed to obtain device tree resource\n");
goto failed_request_regions;
}
@@ -141,8 +140,7 @@ static int xilly_drv_probe(struct platform_device *op)
rc = request_irq(irq, xillybus_isr, 0, xillyname, endpoint);
if (rc) {
- pr_err("xillybus: Failed to register IRQ handler. "
- "Aborting.\n");
+ pr_err("xillybus: Failed to register IRQ handler, Aborting...\n");
rc = -ENODEV;
goto failed_register_irq;
}
--
1.8.1.2
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH 2/2] Staging: xillybus: fix for quoted string split across lines
2013-10-16 17:57 [PATCH 2/2] Staging: xillybus: fix for quoted string split across lines Dhanunjaya
@ 2013-10-16 18:06 ` Greg KH
2013-10-16 18:49 ` Eli Billauer
0 siblings, 1 reply; 4+ messages in thread
From: Greg KH @ 2013-10-16 18:06 UTC (permalink / raw)
To: Dhanunjaya; +Cc: eli.billauer, devel, linux-kernel
On Wed, Oct 16, 2013 at 11:27:52PM +0530, Dhanunjaya wrote:
> This is a patch to the xillybus_of.c file that fixes up a
> quoted string split across lines warning found by the
> checkpatch.pl tool.
>
> Signed-off-by: Dhanunjaya <dhanunjaya.matrix@gmail.com>
I need a full name here please.
> ---
> drivers/staging/xillybus/xillybus_of.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/staging/xillybus/xillybus_of.c b/drivers/staging/xillybus/xillybus_of.c
> index 92c2931..822ef4d 100644
> --- a/drivers/staging/xillybus/xillybus_of.c
> +++ b/drivers/staging/xillybus/xillybus_of.c
> @@ -117,8 +117,7 @@ static int xilly_drv_probe(struct platform_device *op)
>
> rc = of_address_to_resource(dev->of_node, 0, &endpoint->res);
> if (rc) {
> - pr_warn("xillybus: Failed to obtain device tree "
> - "resource\n");
> + pr_warn("xillybus: Failed to obtain device tree resource\n");
This should be using dev_warn() instead.
> goto failed_request_regions;
> }
>
> @@ -141,8 +140,7 @@ static int xilly_drv_probe(struct platform_device *op)
> rc = request_irq(irq, xillybus_isr, 0, xillyname, endpoint);
>
> if (rc) {
> - pr_err("xillybus: Failed to register IRQ handler. "
> - "Aborting.\n");
> + pr_err("xillybus: Failed to register IRQ handler, Aborting...\n");
dev_err() instead please here as well.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH 2/2] Staging: xillybus: fix for quoted string split across lines
2013-10-16 18:06 ` Greg KH
@ 2013-10-16 18:49 ` Eli Billauer
2013-10-16 19:09 ` Greg KH
0 siblings, 1 reply; 4+ messages in thread
From: Eli Billauer @ 2013-10-16 18:49 UTC (permalink / raw)
To: Greg KH; +Cc: Dhanunjaya, devel, linux-kernel
Hello Greg,
On 16/10/13 21:06, Greg KH wrote:
>> rc = of_address_to_resource(dev->of_node, 0,&endpoint->res);
>> > if (rc) {
>> > - pr_warn("xillybus: Failed to obtain device tree "
>> > - "resource\n");
>> > + pr_warn("xillybus: Failed to obtain device tree resource\n");
>>
> This should be using dev_warn() instead.
>
>
So I understand that I should replace *all* occurrences of pr_warn() and
pr_err() with their dev_* counterparts?
If so, please give me a week or so to handle that. It's going to be
rather chunky patch...
Regards,
Eli
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH 2/2] Staging: xillybus: fix for quoted string split across lines
2013-10-16 18:49 ` Eli Billauer
@ 2013-10-16 19:09 ` Greg KH
0 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2013-10-16 19:09 UTC (permalink / raw)
To: Eli Billauer; +Cc: Dhanunjaya, devel, linux-kernel
On Wed, Oct 16, 2013 at 09:49:19PM +0300, Eli Billauer wrote:
> Hello Greg,
>
> On 16/10/13 21:06, Greg KH wrote:
> >> rc = of_address_to_resource(dev->of_node, 0,&endpoint->res);
> >>> if (rc) {
> >>> - pr_warn("xillybus: Failed to obtain device tree "
> >>> - "resource\n");
> >>> + pr_warn("xillybus: Failed to obtain device tree resource\n");
> >This should be using dev_warn() instead.
> >
>
> So I understand that I should replace *all* occurrences of pr_warn()
> and pr_err() with their dev_* counterparts?
Yes.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-10-16 19:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-16 17:57 [PATCH 2/2] Staging: xillybus: fix for quoted string split across lines Dhanunjaya
2013-10-16 18:06 ` Greg KH
2013-10-16 18:49 ` Eli Billauer
2013-10-16 19:09 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox