[ar71xx] create firmware image for the Ubiquiti LS-SR71 board
[openwrt.git] / target / linux / s3c24xx / patches-2.6.24 / 1020-i2c-permit_invalid_addrs.patch.patch
1 From ae0e6a5c9e4cc1786c8b798ac19259a339476121 Mon Sep 17 00:00:00 2001
2 From: mokopatches <mokopatches@openmoko.org>
3 Date: Fri, 4 Apr 2008 11:32:41 +0100
4 Subject: [PATCH] i2c-permit_invalid_addrs.patch
5  We need this stupid workaround since our amplifier chip uses a 'reserved' I2C
6  address
7
8 Signed-off-by: Harald Welte <laforge@openmoko.org>
9 ---
10  drivers/i2c/i2c-core.c |    4 ++--
11  1 files changed, 2 insertions(+), 2 deletions(-)
12
13 diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c
14 index b5e13e4..2c802de 100644
15 --- a/drivers/i2c/i2c-core.c
16 +++ b/drivers/i2c/i2c-core.c
17 @@ -941,11 +941,11 @@ static int i2c_probe_address(struct i2c_adapter *adapter, int addr, int kind,
18         int err;
19  
20         /* Make sure the address is valid */
21 -       if (addr < 0x03 || addr > 0x77) {
22 +       /*if (addr < 0x03 || addr > 0x77) {
23                 dev_warn(&adapter->dev, "Invalid probe address 0x%02x\n",
24                          addr);
25                 return -EINVAL;
26 -       }
27 +       }*/
28  
29         /* Skip if already in use */
30         if (i2c_check_addr(adapter, addr))
31 -- 
32 1.5.6.5
33