[PATCH 7/8] drivers/i2c/i2c.c: Fix sparse warnings
Alexander Shiyan
shc_work at mail.ru
Sun Feb 16 02:24:36 EST 2014
drivers/i2c/i2c.c:246:19: warning: symbol 'i2c_new_device' was not declared. Should it be static?
drivers/i2c/i2c.c:274:6: warning: symbol 'of_i2c_register_devices' was not declared. Should it be static?
Signed-off-by: Alexander Shiyan <shc_work at mail.ru>
---
drivers/i2c/i2c.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/drivers/i2c/i2c.c b/drivers/i2c/i2c.c
index 3b9f601..f8785cb 100644
--- a/drivers/i2c/i2c.c
+++ b/drivers/i2c/i2c.c
@@ -243,8 +243,8 @@ EXPORT_SYMBOL(i2c_write_reg);
*
* Returns the new device, or NULL.
*/
-struct i2c_client *i2c_new_device(struct i2c_adapter *adapter,
- struct i2c_board_info *chip)
+static struct i2c_client *i2c_new_device(struct i2c_adapter *adapter,
+ struct i2c_board_info *chip)
{
struct i2c_client *client;
int status;
@@ -269,9 +269,8 @@ struct i2c_client *i2c_new_device(struct i2c_adapter *adapter,
return client;
}
-EXPORT_SYMBOL(i2c_new_device);
-void of_i2c_register_devices(struct i2c_adapter *adap)
+static void of_i2c_register_devices(struct i2c_adapter *adap)
{
struct device_node *n;
--
1.8.3.2
More information about the barebox
mailing list