Skip to content

Commit

Permalink
Revert "of/platform: Use platform_device interface"
Browse files Browse the repository at this point in the history
This reverts commit b6d2233 as it
breaks working machines.

Cc: Rob Herring <robh@kernel.org>
Cc: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Greg Kroah-Hartman committed Jun 10, 2015
1 parent 8b2dceb commit 8171d5f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/of/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8171d5f

Please sign in to comment.