Lines Matching refs:pd_dev
1469 static int pch_spi_pd_suspend(struct platform_device *pd_dev, in pch_spi_pd_suspend() argument
1473 struct pch_spi_board_data *board_dat = dev_get_platdata(&pd_dev->dev); in pch_spi_pd_suspend()
1474 struct pch_spi_data *data = platform_get_drvdata(pd_dev); in pch_spi_pd_suspend()
1476 dev_dbg(&pd_dev->dev, "%s ENTRY\n", __func__); in pch_spi_pd_suspend()
1479 dev_err(&pd_dev->dev, in pch_spi_pd_suspend()
1501 dev_dbg(&pd_dev->dev, in pch_spi_pd_suspend()
1508 static int pch_spi_pd_resume(struct platform_device *pd_dev) in pch_spi_pd_resume() argument
1510 struct pch_spi_board_data *board_dat = dev_get_platdata(&pd_dev->dev); in pch_spi_pd_resume()
1511 struct pch_spi_data *data = platform_get_drvdata(pd_dev); in pch_spi_pd_resume()
1515 dev_err(&pd_dev->dev, in pch_spi_pd_resume()
1525 dev_err(&pd_dev->dev, in pch_spi_pd_resume()
1555 struct platform_device *pd_dev = NULL; in pch_spi_probe() local
1588 pd_dev = platform_device_alloc("pch-spi", i); in pch_spi_probe()
1589 if (!pd_dev) { in pch_spi_probe()
1594 pd_dev_save->pd_save[i] = pd_dev; in pch_spi_probe()
1595 pd_dev->dev.parent = &pdev->dev; in pch_spi_probe()
1597 retval = platform_device_add_data(pd_dev, board_dat, in pch_spi_probe()
1602 platform_device_put(pd_dev); in pch_spi_probe()
1606 retval = platform_device_add(pd_dev); in pch_spi_probe()
1609 platform_device_put(pd_dev); in pch_spi_probe()