Merge remote-tracking branch 'spi/topic/pdata' into spi-next
[linux.git] / drivers / spi / spi-davinci.c
index 707966bd56103181d31887b53cca01c1d9bd9776..8fbfe2483ffdd12c20683e50194877c1a1ac85ca 100644 (file)
@@ -872,8 +872,8 @@ static int davinci_spi_probe(struct platform_device *pdev)
                goto free_master;
        }
 
-       if (pdev->dev.platform_data) {
-               pdata = pdev->dev.platform_data;
+       if (dev_get_platdata(&pdev->dev)) {
+               pdata = dev_get_platdata(&pdev->dev);
                dspi->pdata = *pdata;
        } else {
                /* update dspi pdata with that from the DT */