0fe12da02911df0e0ac94c6040bf0e2a08ae77cf
[openwrt/openwrt.git] / target / linux / s3c24xx / patches-2.6.24 / 1321-fix-s3c2410-usb-controller-mode-change-always-EINVAL.patch
1 From a5dcecfb817b256b0e36f3c48605f79e35dd3e57 Mon Sep 17 00:00:00 2001
2 From: Andy Green <andy@openmoko.com>
3 Date: Thu, 13 Nov 2008 20:28:59 +0000
4 Subject: [PATCH] fix-s3c2410-usb-controller-mode-change-always-EINVAL.patch
5
6 We always return -EINVAL when changing s3c2410 USB host and device modes
7 due to lack of { }.
8
9 Signed-off-by: Andy Green <andy@openmoko.com>
10 ---
11 drivers/usb/host/ohci-s3c2410.c | 4 +++-
12 1 files changed, 3 insertions(+), 1 deletions(-)
13
14 diff --git a/drivers/usb/host/ohci-s3c2410.c b/drivers/usb/host/ohci-s3c2410.c
15 index 68f5689..1c41202 100644
16 --- a/drivers/usb/host/ohci-s3c2410.c
17 +++ b/drivers/usb/host/ohci-s3c2410.c
18 @@ -335,9 +335,11 @@ static ssize_t set_usb_mode(struct device *dev, struct device_attribute *attr,
19 printk("s3c2410: changing usb to device\n");
20 s3c2410_modify_misccr(S3C2410_MISCCR_USBHOST, 0);
21 s3c2410_gpio_setpin(S3C2410_GPB9, 1);
22 - } else
23 + } else {
24 printk("s3c2410: unknown mode\n");
25 return -EINVAL;
26 + }
27 +
28 return count;
29 }
30
31 --
32 1.5.6.5
33