]> git.hungrycats.org Git - linux/commit
i2c: mux: use proper dev when removing "channel-X" symlinks
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 23 Apr 2015 08:29:09 +0000 (10:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 May 2015 20:04:02 +0000 (22:04 +0200)
commitc5bc4117a935b13fdc40db4753b9d32307d2e304
tree50076552d8b1e353843324caa82652f18ad19eb4
parentaaeb6f4d936e550fef1f068d2e883a23f757d5f5
i2c: mux: use proper dev when removing "channel-X" symlinks

commit 133778482ec6c8fde69406be380333963627c17a upstream.

Those symlinks are created for the mux_dev, so we need to remove it from
there. Currently, it breaks for muxes where the mux_dev is not the device
of the parent adapter like this:

[   78.234644] WARNING: CPU: 0 PID: 365 at fs/sysfs/dir.c:31 sysfs_warn_dup+0x5c/0x78()
[   78.242438] sysfs: cannot create duplicate filename '/devices/platform/i2cbus@8/channel-0'

Remove confusing comments while we are here.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Fixes: c9449affad2ae0
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/i2c/i2c-mux.c