Skip to content

Commit

Permalink
usb: phy: samsung: fix sparse warning
Browse files Browse the repository at this point in the history
Fix the following sparse warning:

drivers/usb/phy/phy-samsung-usb2.c:50:26: sparse: incorrect type in argument 1 (different address spaces)
drivers/usb/phy/phy-samsung-usb2.c:50:26:    expected void const volatile [noderef] <asn:2>*addr
drivers/usb/phy/phy-samsung-usb2.c:50:26:    got void *

Cc: Vivek Gautam <gautam.vivek@samsung.com>
Cc: Kukjin Kim <kgene.kim@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
  • Loading branch information
Felipe Balbi committed Mar 19, 2013
1 parent af6882b commit b64a159
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/phy/phy-samsung-usb2.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ static int samsung_usbphy_set_host(struct usb_otg *otg, struct usb_bus *host)
return 0;
}

static bool exynos5_phyhost_is_on(void *regs)
static bool exynos5_phyhost_is_on(void __iomem *regs)
{
u32 reg;

Expand Down

0 comments on commit b64a159

Please sign in to comment.