switch to 2.6.38
[openwrt/staging/lynxis/omap.git] / target / linux / coldfire / patches / 103-kernel-2.6.38-Fix-i2c-driver-could-not-work-as-module.patch
1 From 358154a6d0dd87305c6af92810220f8a17641c07 Mon Sep 17 00:00:00 2001
2 From: Wang Huan <wanghuan@zch06.freescale.net>
3 Date: Mon, 8 Aug 2011 10:49:53 +0800
4 Subject: [PATCH] Fix i2c driver could not work as module
5
6 Signed-off-by: Alison Wang <b18965@freescale.com>
7 ---
8 arch/m68k/coldfire/m5445x/devices.c | 4 ++--
9 1 files changed, 2 insertions(+), 2 deletions(-)
10
11 --- a/arch/m68k/coldfire/m5445x/devices.c
12 +++ b/arch/m68k/coldfire/m5445x/devices.c
13 @@ -426,7 +426,7 @@ static inline void mcf5445x_init_pata(vo
14 /*
15 * I2C
16 */
17 -#if defined(CONFIG_I2C)
18 +#if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE)
19 static struct resource coldfire_i2c_resources[] = {
20 { /* I/O */
21 .start = 0xFC058000,
22 @@ -464,7 +464,7 @@ static int __init mcf5445x_init_devices(
23 mcf5445x_init_pata();
24 #endif
25
26 -#if defined(CONFIG_I2C)
27 +#if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE)
28 mcf5445x_init_i2c();
29 #endif
30 return 0;