projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gpio: pca953x: fix an incorrect lockdep warning
[cascardo/linux.git]
/
drivers
/
gpio
/
gpio-pca953x.c
diff --git
a/drivers/gpio/gpio-pca953x.c
b/drivers/gpio/gpio-pca953x.c
index
02f2a56
..
892dc04
100644
(file)
--- a/
drivers/gpio/gpio-pca953x.c
+++ b/
drivers/gpio/gpio-pca953x.c
@@
-786,6
+786,8
@@
static int pca953x_probe(struct i2c_client *client,
chip->chip_type = PCA_CHIP_TYPE(chip->driver_data);
mutex_init(&chip->i2c_lock);
chip->chip_type = PCA_CHIP_TYPE(chip->driver_data);
mutex_init(&chip->i2c_lock);
+ lockdep_set_subclass(&chip->i2c_lock,
+ i2c_adapter_depth(client->adapter));
/* initialize cached registers from their original values.
* we can't share this chip with another i2c master.
/* initialize cached registers from their original values.
* we can't share this chip with another i2c master.