mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-28 14:44:10 +08:00
Merge commit 'http://github.com/rogerq/linux gpmc-omap-v4.8-rc1' into next/drivers
This is also going to be part of v4.8 and sent as a bugfix, merging it here to avoid a small conflict against the other gpmc changes. Signed-off-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
commit
9064a1c77d
@ -2183,7 +2183,7 @@ static int gpmc_probe_dt(struct platform_device *pdev)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int gpmc_probe_dt_children(struct platform_device *pdev)
|
static void gpmc_probe_dt_children(struct platform_device *pdev)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
struct device_node *child;
|
struct device_node *child;
|
||||||
@ -2198,11 +2198,11 @@ static int gpmc_probe_dt_children(struct platform_device *pdev)
|
|||||||
else
|
else
|
||||||
ret = gpmc_probe_generic_child(pdev, child);
|
ret = gpmc_probe_generic_child(pdev, child);
|
||||||
|
|
||||||
if (ret)
|
if (ret) {
|
||||||
return ret;
|
dev_err(&pdev->dev, "failed to probe DT child '%s': %d\n",
|
||||||
|
child->name, ret);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
static int gpmc_probe_dt(struct platform_device *pdev)
|
static int gpmc_probe_dt(struct platform_device *pdev)
|
||||||
@ -2210,9 +2210,8 @@ static int gpmc_probe_dt(struct platform_device *pdev)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int gpmc_probe_dt_children(struct platform_device *pdev)
|
static void gpmc_probe_dt_children(struct platform_device *pdev)
|
||||||
{
|
{
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_OF */
|
#endif /* CONFIG_OF */
|
||||||
|
|
||||||
@ -2362,16 +2361,10 @@ static int gpmc_probe(struct platform_device *pdev)
|
|||||||
goto gpio_init_failed;
|
goto gpio_init_failed;
|
||||||
}
|
}
|
||||||
|
|
||||||
rc = gpmc_probe_dt_children(pdev);
|
gpmc_probe_dt_children(pdev);
|
||||||
if (rc < 0) {
|
|
||||||
dev_err(gpmc->dev, "failed to probe DT children\n");
|
|
||||||
goto dt_children_failed;
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
dt_children_failed:
|
|
||||||
gpmc_free_irq(gpmc);
|
|
||||||
gpio_init_failed:
|
gpio_init_failed:
|
||||||
gpmc_mem_exit();
|
gpmc_mem_exit();
|
||||||
pm_runtime_put_sync(&pdev->dev);
|
pm_runtime_put_sync(&pdev->dev);
|
||||||
|
Loading…
Reference in New Issue
Block a user