]> git.baikalelectronics.ru Git - kernel.git/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)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 23 Apr 2015 17:35:33 +0000 (19:35 +0200)
commit62257b32030de35fd08f59793cd9925eff5cbab2
treef5b9923bebe7b7e9b73d8e1e211304de51b64329
parent30bf05f74d244badbb91388fb0dd3ac30f146e2d
i2c: mux: use proper dev when removing "channel-X" symlinks

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: 2be8360a0a9acd
Cc: stable@kernel.org
drivers/i2c/i2c-mux.c