From: Andrew Lunn Date: Sun, 28 Oct 2012 15:01:11 +0000 (+0100) Subject: Regulator: core: Unregister when gpio request fails. X-Git-Tag: v3.7-rc6~19^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2da55d9441cbdaf73c12403ed801b644d5ae5e3;p=pandora-kernel.git 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 Signed-off-by: Mark Brown --- Reading git-diff-tree failed