kernel: add missing config symbols to 3.13
[openwrt.git] / target / linux / sunxi / patches-3.13 / 178-sunxi-ehci-fix-resource-check.patch
1 From e772c9c2f552740ae735328cbd06b1d7f8e9d885 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 --- a/drivers/usb/host/ehci-sunxi.c
12 +++ b/drivers/usb/host/ehci-sunxi.c
13 @@ -332,7 +332,8 @@ static int sunxi_ehci_probe(struct platf
14         if (pdev->resource[0].flags != IORESOURCE_MEM
15                         || pdev->resource[1].flags != IORESOURCE_MEM
16                         || pdev->resource[2].flags != IORESOURCE_MEM
17 -                       || pdev->resource[3].flags != IORESOURCE_IRQ) {
18 +                       || (pdev->resource[3].flags & IORESOURCE_TYPE_BITS)
19 +                               != IORESOURCE_IRQ) {
20                 dev_err(&pdev->dev, "invalid resource type\n");
21                 return -ENODEV;
22         }