From: William Wu Date: Tue, 1 Aug 2017 06:59:42 +0000 (+0800) Subject: usb: ohci-platform: disable ohci for rk3288 X-Git-Tag: release-20171130_firefly~4^2~64 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=32f0d2c081df4b3e22e8753e52cd91c388d79cd9;p=firefly-linux-kernel-4.4.55.git usb: ohci-platform: disable ohci for rk3288 rk3288 ohci doesn't actually work on hardware, so we need to disable it in ohci-platform driver. Change-Id: I72750edda67358ff1e8fe66047bf60420500997e Signed-off-by: William Wu --- diff --git a/drivers/usb/host/ohci-platform.c b/drivers/usb/host/ohci-platform.c index d7a410628748..c47e7ab2af47 100644 --- a/drivers/usb/host/ohci-platform.c +++ b/drivers/usb/host/ohci-platform.c @@ -119,7 +119,7 @@ static int ohci_platform_probe(struct platform_device *dev) struct ohci_hcd *ohci; int err, irq, phy_num, clk = 0; - if (usb_disabled()) + if (usb_disabled() || of_machine_is_compatible("rockchip,rk3288")) return -ENODEV; /*