Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 90094c0c authored by Rama Aparna Mallavarapu's avatar Rama Aparna Mallavarapu
Browse files

Revert "PM / devfreq: Modify the device name as devfreq(X) for sysfs"



This reverts commit 4585fbcb. The change
to be reverted would add probe order-dependent numbers to the end of each
devfreq device, making our post boot script (among others) incredibly
brittle.

Change-Id: I8fdb679ae651d9f425ffd60e2141613ae20bb029
Signed-off-by: default avatarJonathan Avila <avilaj@codeaurora.org>
Signed-off-by: default avatarRama Aparna Mallavarapu <aparnam@codeaurora.org>
parent 1f8bee26
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -560,7 +560,6 @@ struct devfreq *devfreq_add_device(struct device *dev,
{
	struct devfreq *devfreq;
	struct devfreq_governor *governor;
	static atomic_t devfreq_no = ATOMIC_INIT(-1);
	int err = 0;

	if (!dev || !profile || !governor_name) {
@@ -620,8 +619,7 @@ struct devfreq *devfreq_add_device(struct device *dev,
	}
	devfreq->max_freq = devfreq->scaling_max_freq;

	dev_set_name(&devfreq->dev, "devfreq%d",
				atomic_inc_return(&devfreq_no));
	dev_set_name(&devfreq->dev, "%s", dev_name(dev));
	err = device_register(&devfreq->dev);
	if (err) {
		mutex_unlock(&devfreq->lock);