diff options
author | Andrew Lunn <andrew@lunn.ch> | 2012-10-28 19:01:11 +0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-10-28 22:13:07 +0400 |
commit | b2da55d9441cbdaf73c12403ed801b644d5ae5e3 (patch) | |
tree | c8976cbd52aabcba45a51c898fe11672200cb97f /drivers/target/iscsi/iscsi_target.c | |
parent | 6f0c0580b70c89094b3422ba81118c7b959c7556 (diff) | |
download | linux-b2da55d9441cbdaf73c12403ed801b644d5ae5e3.tar.xz |
Regulator: core: Unregister when gpio request fails.
If the gpio_request_one() fails, or returns EPROBE_DEFER, the
regulator must be device_unregister()ed. When this is not done,
there are WARNING: from sysfs:
WARNING: at fs/sysfs/file.c:343 sysfs_open_file+0x238/0x268()
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/target/iscsi/iscsi_target.c')
0 files changed, 0 insertions, 0 deletions