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

Commit 1f6b9d08 authored by Kaushal Kumar's avatar Kaushal Kumar
Browse files

Revert "of/platform: Move platform devices under /sys/devices/platform"



This reverts commit 43c0767e17ac ("of/platform: Move platform
devices under /sys/devices/platform"). Userspace code that
expects to find devices under a fixed /sys/devices/... path are
affected by moving platform devices under /sys/devices/platform.

Change-Id: I6a108c46c1b2e3985797bb86a3ed84a29ab286a8
Signed-off-by: default avatarKaushal Kumar <kaushalk@codeaurora.org>
parent 99d7b718
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -140,7 +140,7 @@ struct platform_device *of_device_alloc(struct device_node *np,
	}

	dev->dev.of_node = of_node_get(np);
	dev->dev.parent = parent ? : &platform_bus;
	dev->dev.parent = parent;

	if (bus_id)
		dev_set_name(&dev->dev, "%s", bus_id);
@@ -244,7 +244,7 @@ static struct amba_device *of_amba_device_create(struct device_node *node,

	/* setup generic device info */
	dev->dev.of_node = of_node_get(node);
	dev->dev.parent = parent ? : &platform_bus;
	dev->dev.parent = parent;
	dev->dev.platform_data = platform_data;
	if (bus_id)
		dev_set_name(&dev->dev, "%s", bus_id);