diff options
author | Jean Delvare <khali@linux-fr.org> | 2009-09-25 08:15:59 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2009-12-13 13:20:40 -0500 |
commit | 29f02646f0fa2b3c3a91f9145653e6a6ae8e7eb1 (patch) | |
tree | 80f9a44d3ed34217c7a82c9302ace4cb1873fa80 /drivers/mfd/ab3100-core.c | |
parent | 956266da703e3885924fe21bfc20f32d8f875474 (diff) |
mfd: Don't abuse i2c_client.name
The name field of struct i2c_client is for i2c-core's use, it should
never be changed by the drivers themselves.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/ab3100-core.c')
-rw-r--r-- | drivers/mfd/ab3100-core.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/mfd/ab3100-core.c b/drivers/mfd/ab3100-core.c index 613481028272..fd42a80e7bf9 100644 --- a/drivers/mfd/ab3100-core.c +++ b/drivers/mfd/ab3100-core.c | |||
@@ -900,9 +900,6 @@ static int __init ab3100_probe(struct i2c_client *client, | |||
900 | goto exit_no_testreg_client; | 900 | goto exit_no_testreg_client; |
901 | } | 901 | } |
902 | 902 | ||
903 | strlcpy(ab3100->testreg_client->name, id->name, | ||
904 | sizeof(ab3100->testreg_client->name)); | ||
905 | |||
906 | err = ab3100_setup(ab3100); | 903 | err = ab3100_setup(ab3100); |
907 | if (err) | 904 | if (err) |
908 | goto exit_no_setup; | 905 | goto exit_no_setup; |