|
@@ -183,8 +183,9 @@ static struct platform_device *of_platform_device_create_pdata(
|
|
dev->dev.bus = &platform_bus_type;
|
|
dev->dev.bus = &platform_bus_type;
|
|
dev->dev.platform_data = platform_data;
|
|
dev->dev.platform_data = platform_data;
|
|
of_dma_configure(&dev->dev, dev->dev.of_node);
|
|
of_dma_configure(&dev->dev, dev->dev.of_node);
|
|
|
|
+ dev->name = dev_name(&dev->dev);
|
|
|
|
|
|
- if (of_device_add(dev) != 0) {
|
|
|
|
|
|
+ if (platform_device_add(dev) != 0) {
|
|
of_dma_deconfigure(&dev->dev);
|
|
of_dma_deconfigure(&dev->dev);
|
|
platform_device_put(dev);
|
|
platform_device_put(dev);
|
|
goto err_clear_flag;
|
|
goto err_clear_flag;
|