projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9620f4d
)
usb-uart: fix compiler warning
author
lyz
<lyz@rock-chips.com>
Fri, 11 Jul 2014 09:42:24 +0000
(17:42 +0800)
committer
lyz
<lyz@rock-chips.com>
Fri, 11 Jul 2014 09:43:54 +0000
(17:43 +0800)
arch/arm/mach-rockchip/rk3036.c: In function 'usb_uart_init':
arch/arm/mach-rockchip/rk3036.c:87:9: warning: unused variable
arch/arm/mach-rockchip/rk3036.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-rockchip/rk3036.c
b/arch/arm/mach-rockchip/rk3036.c
index 65a3d8d552b160a9913f94e333128618dfcd5ac1..72317f89e002dc2c615cc5109e965eaf4e2c4ee1 100755
(executable)
--- a/
arch/arm/mach-rockchip/rk3036.c
+++ b/
arch/arm/mach-rockchip/rk3036.c
@@
-84,7
+84,9
@@
static void __init rk3036_boot_mode_init(void)
static void usb_uart_init(void)
{
+#ifdef CONFIG_RK_USB_UART
u32 soc_status0 = readl_relaxed(RK_GRF_VIRT + RK3036_GRF_SOC_STATUS0);
+#endif
writel_relaxed(0x34000000, RK_GRF_VIRT + RK3036_GRF_UOC1_CON4);
#ifdef CONFIG_RK_USB_UART
if (!(soc_status0 & (1 << 14)) && (soc_status0 & (1 << 17))) {