diff options
-rw-r--r-- | drivers/i2c/i2c-core.c | 3 | ||||
-rw-r--r-- | include/linux/i2c.h | 5 |
2 files changed, 1 insertions, 7 deletions
diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c index 1a4e8dc03b36..b5e13e405e72 100644 --- a/drivers/i2c/i2c-core.c +++ b/drivers/i2c/i2c-core.c | |||
@@ -673,7 +673,7 @@ static int __i2c_check_addr(struct i2c_adapter *adapter, unsigned int addr) | |||
673 | return 0; | 673 | return 0; |
674 | } | 674 | } |
675 | 675 | ||
676 | int i2c_check_addr(struct i2c_adapter *adapter, int addr) | 676 | static int i2c_check_addr(struct i2c_adapter *adapter, int addr) |
677 | { | 677 | { |
678 | int rval; | 678 | int rval; |
679 | 679 | ||
@@ -683,7 +683,6 @@ int i2c_check_addr(struct i2c_adapter *adapter, int addr) | |||
683 | 683 | ||
684 | return rval; | 684 | return rval; |
685 | } | 685 | } |
686 | EXPORT_SYMBOL(i2c_check_addr); | ||
687 | 686 | ||
688 | int i2c_attach_client(struct i2c_client *client) | 687 | int i2c_attach_client(struct i2c_client *client) |
689 | { | 688 | { |
diff --git a/include/linux/i2c.h b/include/linux/i2c.h index 8033e6b33271..a100c9f8eb7c 100644 --- a/include/linux/i2c.h +++ b/include/linux/i2c.h | |||
@@ -400,11 +400,6 @@ extern int i2c_release_client(struct i2c_client *); | |||
400 | extern void i2c_clients_command(struct i2c_adapter *adap, | 400 | extern void i2c_clients_command(struct i2c_adapter *adap, |
401 | unsigned int cmd, void *arg); | 401 | unsigned int cmd, void *arg); |
402 | 402 | ||
403 | /* returns -EBUSY if address has been taken, 0 if not. Note that the only | ||
404 | other place at which this is called is within i2c_attach_client; so | ||
405 | you can cheat by simply not registering. Not recommended, of course! */ | ||
406 | extern int i2c_check_addr (struct i2c_adapter *adapter, int addr); | ||
407 | |||
408 | /* Detect function. It iterates over all possible addresses itself. | 403 | /* Detect function. It iterates over all possible addresses itself. |
409 | * It will only call found_proc if some client is connected at the | 404 | * It will only call found_proc if some client is connected at the |
410 | * specific address (unless a 'force' matched); | 405 | * specific address (unless a 'force' matched); |