diff options
author | Bartosz Golaszewski <brgl@bgdev.pl> | 2018-03-19 10:17:01 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-03-23 16:22:30 +0100 |
commit | d154316dde64651d8a84c0e7ce5962ac1787f379 (patch) | |
tree | 2e516e4df97ba551f98545bbba991efb21c3513f /drivers/misc | |
parent | c84f259c8772d439fc6f014405c735d31943cf18 (diff) | |
download | linux-stable-d154316dde64651d8a84c0e7ce5962ac1787f379.tar.gz linux-stable-d154316dde64651d8a84c0e7ce5962ac1787f379.tar.bz2 linux-stable-d154316dde64651d8a84c0e7ce5962ac1787f379.zip |
eeprom: at24: disable regmap locking
We use our own mutex for locking. Disable the regmap-specific locking.
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Tested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/eeprom/at24.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/misc/eeprom/at24.c b/drivers/misc/eeprom/at24.c index 01f9c4921c50..73af6c5a2d73 100644 --- a/drivers/misc/eeprom/at24.c +++ b/drivers/misc/eeprom/at24.c @@ -577,6 +577,7 @@ static int at24_probe(struct i2c_client *client, const struct i2c_device_id *id) regmap_config.val_bits = 8; regmap_config.reg_bits = (chip.flags & AT24_FLAG_ADDR16) ? 16 : 8; + regmap_config.disable_locking = true; at24 = devm_kzalloc(&client->dev, sizeof(struct at24_data) + num_addresses * sizeof(struct at24_client), GFP_KERNEL); |