]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[ARM] 5110/1: PXA SSP: Remember the platform device on probe()
authorMark Brown <broonie@sirena.org.uk>
Thu, 19 Jun 2008 01:55:52 +0000 (02:55 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 10 Jul 2008 16:07:36 +0000 (17:07 +0100)
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>
arch/arm/mach-pxa/ssp.c

index 363668cc3a9c57d0e726316ecd2ba2f666c07b48..20d0a06af06ce71be45685dbc64ce974aa126527 100644 (file)
@@ -361,6 +361,7 @@ static int __devinit ssp_probe(struct platform_device *pdev, int type)
                dev_err(&pdev->dev, "failed to allocate memory");
                return -ENOMEM;
        }
+       ssp->pdev = pdev;
 
        ssp->clk = clk_get(&pdev->dev, "SSPCLK");
        if (IS_ERR(ssp->clk)) {