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

Commit 919dcb21 authored by Mark Brown's avatar Mark Brown Committed by Russell King
Browse files

[ARM] 5110/1: PXA SSP: Remember the platform device on probe()



pdev is used later on by dev_printk() so must be set.

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: default avatarEric Miao <eric.miao@marvell.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent bbae0203
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -361,6 +361,7 @@ static int __devinit ssp_probe(struct platform_device *pdev, int type)
		dev_err(&pdev->dev, "failed to allocate memory");
		dev_err(&pdev->dev, "failed to allocate memory");
		return -ENOMEM;
		return -ENOMEM;
	}
	}
	ssp->pdev = pdev;


	ssp->clk = clk_get(&pdev->dev, "SSPCLK");
	ssp->clk = clk_get(&pdev->dev, "SSPCLK");
	if (IS_ERR(ssp->clk)) {
	if (IS_ERR(ssp->clk)) {