projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
809609a
)
sh-pfc: Fix compiler warning when BUG()
author
Laurent Pinchart
<
[email protected]
>
Tue, 26 Mar 2013 00:44:52 +0000
(
01:44
+0100)
committer
Simon Horman
<
[email protected]
>
Tue, 2 Apr 2013 02:09:45 +0000
(11:09 +0900)
The sh_pfc_phys_to_virt() function ends with a BUG() statement without a
return. When CONFIG_BUG isn't set the function will thus have no return
value. Fix it.
Signed-off-by: Laurent Pinchart <
[email protected]
>
Signed-off-by: Simon Horman <
[email protected]
>
drivers/pinctrl/sh-pfc/core.c
patch
|
blob
|
history
diff --git
a/drivers/pinctrl/sh-pfc/core.c
b/drivers/pinctrl/sh-pfc/core.c
index feef89792568a8d8453688ecc97c295402508e8d..97e6ea3147e088171718e0dae8eb4e195bc595c6 100644
(file)
--- a/
drivers/pinctrl/sh-pfc/core.c
+++ b/
drivers/pinctrl/sh-pfc/core.c
@@
-72,6
+72,7
@@
static void __iomem *sh_pfc_phys_to_virt(struct sh_pfc *pfc,
}
BUG();
+ return NULL;
}
int sh_pfc_get_pin_index(struct sh_pfc *pfc, unsigned int pin)