Files
linux/drivers
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
..
2018-05-16 10:06:52 +02:00
2018-02-25 11:03:46 +01:00
2018-02-25 11:03:51 +01:00
2018-06-13 16:15:28 +02:00
2018-07-09 15:26:44 +08:00
2018-06-19 08:51:10 +08:00
2018-05-23 09:26:14 +08:00
2018-05-23 09:26:14 +08:00