linux/drivers/i2c
Andy Shevchenko 3093c64101 i2c: mux: pca954x: Move device_remove_file() out of pca954x_cleanup()
device_create_file() is called the last in ->probe() but pca954x_cleanup(),
which is called earlier in error path, tries to remove never created file.
Move device_remove_file() call outside of pca954x_cleanup() to make it
slightly closer to what pca954x_init() is doing.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
2020-05-11 21:23:16 +02:00
..
algos i2c: algo: Use generic definitions for bus frequencies 2020-03-24 22:00:05 +01:00
busses i2c: at91: Send bus clear command if SDA is down 2020-05-05 16:37:21 +02:00
muxes i2c: mux: pca954x: Move device_remove_file() out of pca954x_cleanup() 2020-05-11 21:23:16 +02:00
i2c-boardinfo.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
i2c-core-acpi.c Linux 5.6-rc7 2020-03-26 12:09:58 +01:00
i2c-core-base.c i2c: refactor parsing of timings 2020-04-15 12:53:57 +02:00
i2c-core-of.c i2c: i2c-core-of: convert to use i2c_new_client_device() 2020-01-15 20:40:12 +01:00
i2c-core-slave.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
i2c-core-smbus.c i2c: smbus: remove outdated references to irq level triggers 2020-03-10 12:20:04 +01:00
i2c-core.h Merge branch 'i2c/for-5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux 2019-07-15 21:10:39 -07:00
i2c-dev.c i2c: dev: Fix the race between the release of i2c_dev and cdev 2020-03-20 18:34:29 +01:00
i2c-mux.c i2c: mux: add sysfs header 2019-06-22 07:32:33 +02:00
i2c-slave-eeprom.c i2c: slave-eeprom: Make it possible to pre-load eeprom data 2020-04-26 09:39:55 +02:00
i2c-smbus.c i2c: convert SMBus alert setup function to return an ERRPTR 2020-03-10 12:19:52 +01:00
i2c-stub.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
Kconfig docs: i2c: convert to ReST and add to driver-api bookset 2019-07-31 13:25:27 -06:00
Makefile i2c: don't use any __deprecated handling anymore 2018-08-24 17:26:43 +02:00