uboot-sunxi: bump u-boot version - update u-boot to 2014.01-rc1 - smp support on a20
[openwrt/staging/wigyori.git] / target / linux / sunxi / patches-3.12 / 164-sunxi-ehci-fix-resource-check.patch
1 From e8966070a22744582a2b7b63d8dab82f05499eb2 Mon Sep 17 00:00:00 2001
2 From: Hans de Goede <hdegoede@redhat.com>
3 Date: Tue, 17 Dec 2013 23:27:03 +0100
4 Subject: [PATCH] ARM: sunxi-ehci: Fix resource check
5
6 Signed-off-by: Hans de Goede <hdegoede@redhat.com>
7 ---
8 drivers/usb/host/ehci-sunxi.c | 3 ++-
9 1 file changed, 2 insertions(+), 1 deletion(-)
10
11 diff --git a/drivers/usb/host/ehci-sunxi.c b/drivers/usb/host/ehci-sunxi.c
12 index e7e15cc..e050d78 100644
13 --- a/drivers/usb/host/ehci-sunxi.c
14 +++ b/drivers/usb/host/ehci-sunxi.c
15 @@ -332,7 +332,8 @@ static int sunxi_ehci_probe(struct platform_device *pdev)
16 if (pdev->resource[0].flags != IORESOURCE_MEM
17 || pdev->resource[1].flags != IORESOURCE_MEM
18 || pdev->resource[2].flags != IORESOURCE_MEM
19 - || pdev->resource[3].flags != IORESOURCE_IRQ) {
20 + || (pdev->resource[3].flags & IORESOURCE_TYPE_BITS)
21 + != IORESOURCE_IRQ) {
22 dev_err(&pdev->dev, "invalid resource type\n");
23 return -ENODEV;
24 }
25 --
26 1.8.5.1
27