i2c-sibyte: Mark i2c_sibyte_add_bus() as static
authorMaciej W. Rozycki <macro@linux-mips.org>
Sun, 11 May 2008 18:37:05 +0000 (20:37 +0200)
committerJean Delvare <khali@hyperion.delvare>
Sun, 11 May 2008 18:37:05 +0000 (20:37 +0200)
The i2c_sibyte_add_bus() function is not called, nor meant to, from
outside, so mark it as static; fixing a sparse warning too.

Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/busses/i2c-sibyte.c

index 48e0a4dafac72cba71654be3f3293daa2abf063f..114634da6c6e9f3a7bd7ca77bf04476fc1c2818c 100644 (file)
@@ -132,7 +132,7 @@ static const struct i2c_algorithm i2c_sibyte_algo = {
 /*
  * registering functions to load algorithms at runtime
  */
-int __init i2c_sibyte_add_bus(struct i2c_adapter *i2c_adap, int speed)
+static int __init i2c_sibyte_add_bus(struct i2c_adapter *i2c_adap, int speed)
 {
        struct i2c_algo_sibyte_data *adap = i2c_adap->algo_data;