linux-uconsole/drivers/devfreq
Chris Diamand 981d6435af UPSTREAM: PM / devfreq: Don't delete sysfs group twice
The 'userspace' governor adds a sysfs entry, which is removed when
the governor is changed, or the devfreq device is released. However,
when the latter occurs via device_unregister(), device_del() is
called first, which removes the sysfs entries recursively and deletes
the kobject.

This means we get an Oops when the governor calls
sysfs_remove_group() on the deleted kobject. Fix this by only doing
the call when kobj *hasn't* been kobject_del()'d.

Note that we can't just remove the call to sysfs_remove_group()
entirely - it's needed for when the governor is changed to one which
doesn't need a sysfs entry.

Change-Id: I2ddad9d062ebb1a64582a15cd5b9efc5882bc848
Signed-off-by: Chris Diamand <chris.diamand@arm.com>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
(cherry picked from commit 924b9111a1)
Signed-off-by: Liang Chen <cl@rock-chips.com>
2018-07-10 16:40:19 +08:00
..
event PM / devfreq: event: add support for px30 dfi 2018-02-08 14:53:27 +08:00
exynos devfreq: exynos: drop owner assignment from platform_drivers 2014-10-20 16:20:27 +02:00
ddr_rk3368.c rk3368 ddr: add configure ddr timing function 2015-09-15 16:30:38 +08:00
devfreq-event.c PM / devfreq: event: Add devfreq_event class 2015-01-30 17:56:40 +09:00
devfreq.c Merge branch 'linux-linaro-lsk-v4.4-android' of git://git.linaro.org/kernel/linux-linaro-stable.git 2018-03-09 19:10:14 +08:00
governor.h PM / devfreq: provide hooks for governors to be registered 2012-11-20 18:46:12 +09:00
governor_performance.c PM / devfreq: governors: add GPL module license and allow module build 2012-11-20 18:46:23 +09:00
governor_powersave.c PM / devfreq: governors: add GPL module license and allow module build 2012-11-20 18:46:23 +09:00
governor_simpleondemand.c PM / devfreq: cache the last call to get_dev_status() 2015-09-11 14:23:28 +09:00
governor_userspace.c UPSTREAM: PM / devfreq: Don't delete sysfs group twice 2018-07-10 16:40:19 +08:00
Kconfig PM / devfreq: rockchip_bus: support soc bus devfreq. 2018-05-03 19:53:43 +08:00
Makefile PM / devfreq: rockchip_bus: support soc bus devfreq. 2018-05-03 19:53:43 +08:00
rockchip_bus.c PM / devfreq: rockchip_bus: Add support for rk3288, rk3368 and rk3399 2018-05-31 14:17:29 +08:00
rockchip_dmc.c PM / devfreq: rockchip_dmc: Add wide-temperature control 2018-07-06 19:40:25 +08:00
tegra-devfreq.c PM / devfreq: tegra: Update governor to use devfreq_update_stats() 2015-09-11 14:23:30 +09:00