linux-mips
[Top] [All Lists]

[PATCH] i2c: Fix section mismatch errors in i2c-octeon.c

To: linux-i2c@vger.kernel.org, ben-linux@fluff.org, khali@linux-fr.org
Subject: [PATCH] i2c: Fix section mismatch errors in i2c-octeon.c
From: David Daney <ddaney@caviumnetworks.com>
Date: Mon, 8 Mar 2010 11:04:21 -0800
Cc: linux-mips@linux-mips.org, ralf@linux-mips.org, rade.bozic.ext@nsn.com, David Daney <ddaney@caviumnetworks.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Signed-off-by: David Daney <ddaney@caviumnetworks.com>
---
 drivers/i2c/busses/i2c-octeon.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/i2c/busses/i2c-octeon.c b/drivers/i2c/busses/i2c-octeon.c
index 6037550..be88d5b 100644
--- a/drivers/i2c/busses/i2c-octeon.c
+++ b/drivers/i2c/busses/i2c-octeon.c
@@ -446,7 +446,7 @@ static struct i2c_adapter octeon_i2c_ops = {
 /**
  * octeon_i2c_setclock - Calculate and set clock divisors.
  */
-static int __init octeon_i2c_setclock(struct octeon_i2c *i2c)
+static int __devinit octeon_i2c_setclock(struct octeon_i2c *i2c)
 {
        int tclk, thp_base, inc, thp_idx, mdiv_idx, ndiv_idx, foscl, diff;
        int thp = 0x18, mdiv = 2, ndiv = 0, delta_hz = 1000000;
@@ -489,7 +489,7 @@ static int __init octeon_i2c_setclock(struct octeon_i2c 
*i2c)
        return 0;
 }
 
-static int __init octeon_i2c_initlowlevel(struct octeon_i2c *i2c)
+static int __devinit octeon_i2c_initlowlevel(struct octeon_i2c *i2c)
 {
        u8 status;
        int tries;
-- 
1.6.6.1


<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] i2c: Fix section mismatch errors in i2c-octeon.c, David Daney <=