linux/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
exynos
ddr_rk3368.c
devfreq-event.c
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_performance.c
governor_powersave.c
governor_simpleondemand.c
governor_userspace.c UPSTREAM: PM / devfreq: Don't delete sysfs group twice 2018-07-10 16:40:19 +08:00
governor.h
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