Commit 1025cb92 authored by Ben Dooks's avatar Ben Dooks Committed by Kishon Vijay Abraham I

phy: phy-brcm-usb-init: fix use of integer as pointer

The xhci_ec_base variable is a pointer, so don't compare
it with an integer.
Signed-off-by: default avatarBen Dooks <ben.dooks@codethink.co.uk>
Reviewed-by: default avatarAndrew Murray <andrew.murray@arm.com>
Signed-off-by: default avatarKishon Vijay Abraham I <kishon@ti.com>
parent e4b957d3
......@@ -707,7 +707,7 @@ static void brcmusb_usb3_otp_fix(struct brcm_usb_init_params *params)
void __iomem *xhci_ec_base = params->xhci_ec_regs;
u32 val;
if (params->family_id != 0x74371000 || xhci_ec_base == 0)
if (params->family_id != 0x74371000 || !xhci_ec_base)
return;
brcmusb_writel(0xa20c, USB_XHCI_EC_REG(xhci_ec_base, IRAADR));
val = brcmusb_readl(USB_XHCI_EC_REG(xhci_ec_base, IRADAT));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment