From: Shawn Guo Date: Thu, 5 Jul 2012 06:19:42 +0000 (+0800) Subject: regulator: core: remove sysfs entry properly in regulator_put X-Git-Tag: v3.6-rc1~157^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2c98eaf928a2a0ecaca1db9aa5dc56a36699d9f;p=pandora-kernel.git regulator: core: remove sysfs entry properly in regulator_put With changes introduced by commit 222cc7b (regulator: core: Allow multiple requests of a single supply mapping) on create_regulator, regulator_put needs a corresponding update on sysfs entry removing. Also regulator->dev still needs to get assigned in create_regulator, otherwise, sysfs_remove_link call in regulator_put will get bypassed. Reported-by: Fabio Estevam Tested-by: Dong Aisheng Signed-off-by: Shawn Guo Signed-off-by: Mark Brown --- Reading git-diff-tree failed