diff options
author | Mark Brown <broonie@sirena.org.uk> | 2008-06-18 21:55:52 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-07-10 12:07:36 -0400 |
commit | 919dcb2111dea341a8281a3dc893967c7dccd93f (patch) | |
tree | b96b9891956bded8a5e7f3ebb3a8fc37d67fb60d /arch/arm/mach-pxa | |
parent | bbae02035a87a3ef45f751032ec8d2bb6f3ed496 (diff) |
[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: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Eric Miao <eric.miao@marvell.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-pxa')
-rw-r--r-- | arch/arm/mach-pxa/ssp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/ssp.c b/arch/arm/mach-pxa/ssp.c index 363668cc3a9c..20d0a06af06c 100644 --- a/arch/arm/mach-pxa/ssp.c +++ b/arch/arm/mach-pxa/ssp.c | |||
@@ -361,6 +361,7 @@ static int __devinit ssp_probe(struct platform_device *pdev, int type) | |||
361 | dev_err(&pdev->dev, "failed to allocate memory"); | 361 | dev_err(&pdev->dev, "failed to allocate memory"); |
362 | return -ENOMEM; | 362 | return -ENOMEM; |
363 | } | 363 | } |
364 | ssp->pdev = pdev; | ||
364 | 365 | ||
365 | ssp->clk = clk_get(&pdev->dev, "SSPCLK"); | 366 | ssp->clk = clk_get(&pdev->dev, "SSPCLK"); |
366 | if (IS_ERR(ssp->clk)) { | 367 | if (IS_ERR(ssp->clk)) { |