[ARM] pxa: don't pass a consumer clock name for devices with unique clocks
Where devices only have one consumer, passing a consumer clock ID has no real benefit. Remove it. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:

committed by
Russell King

parent
8c3abc7d90
commit
e0d8b13ae1
@@ -1079,7 +1079,7 @@ static int pxa3xx_nand_probe(struct platform_device *pdev)
|
||||
this = &info->nand_chip;
|
||||
mtd->priv = info;
|
||||
|
||||
info->clk = clk_get(&pdev->dev, "NANDCLK");
|
||||
info->clk = clk_get(&pdev->dev, NULL);
|
||||
if (IS_ERR(info->clk)) {
|
||||
dev_err(&pdev->dev, "failed to get nand clock\n");
|
||||
ret = PTR_ERR(info->clk);
|
||||
|
Reference in New Issue
Block a user