OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56ec440
)
ptp: ocp: Report error if resource registration fails.
author
Jonathan Lemon
<jonathan.lemon@gmail.com>
Wed, 15 Sep 2021 02:16:23 +0000
(19:16 -0700)
committer
David S. Miller
<davem@davemloft.net>
Wed, 15 Sep 2021 10:10:00 +0000
(11:10 +0100)
If a resource could not be registered, report the name of
the resource and the error code.
Signed-off-by: Jonathan Lemon <jonathan.lemon@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ptp/ptp_ocp.c
patch
|
blob
|
history
diff --git
a/drivers/ptp/ptp_ocp.c
b/drivers/ptp/ptp_ocp.c
index
ad8b794
..
1f86e87
100644
(file)
--- a/
drivers/ptp/ptp_ocp.c
+++ b/
drivers/ptp/ptp_ocp.c
@@
-1158,8
+1158,12
@@
ptp_ocp_register_resources(struct ptp_ocp *bp, kernel_ulong_t driver_data)
if (!ptp_ocp_allow_irq(bp, r))
continue;
err = r->setup(bp, r);
- if (err)
+ if (err) {
+ dev_err(&bp->pdev->dev,
+ "Could not register %s: err %d\n",
+ r->name, err);
break;
+ }
}
return err;
}