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

Commit 8171d5f7 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

Revert "of/platform: Use platform_device interface"



This reverts commit b6d2233f as it
breaks working machines.

Cc: Rob Herring <robh@kernel.org>
Cc: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8b2dceba
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -183,9 +183,8 @@ static struct platform_device *of_platform_device_create_pdata(
	dev->dev.bus = &platform_bus_type;
	dev->dev.platform_data = platform_data;
	of_dma_configure(&dev->dev, dev->dev.of_node);
	dev->name = dev_name(&dev->dev);

	if (platform_device_add(dev) != 0) {
	if (of_device_add(dev) != 0) {
		of_dma_deconfigure(&dev->dev);
		platform_device_put(dev);
		goto err_clear_flag;