Lines Matching refs:dev
61 struct device *dev; member
233 rngc = devm_kzalloc(&pdev->dev, sizeof(*rngc), GFP_KERNEL); in imx_rngc_probe()
241 rngc->clk = devm_clk_get_enabled(&pdev->dev, NULL); in imx_rngc_probe()
243 return dev_err_probe(&pdev->dev, PTR_ERR(rngc->clk), "Cannot get rng_clk\n"); in imx_rngc_probe()
266 rngc->dev = &pdev->dev; in imx_rngc_probe()
271 ret = devm_request_irq(&pdev->dev, in imx_rngc_probe()
274 return dev_err_probe(&pdev->dev, ret, "Can't get interrupt working.\n"); in imx_rngc_probe()
279 return dev_err_probe(&pdev->dev, ret, "self test failed\n"); in imx_rngc_probe()
282 ret = devm_hwrng_register(&pdev->dev, &rngc->rng); in imx_rngc_probe()
284 return dev_err_probe(&pdev->dev, ret, "hwrng registration failed\n"); in imx_rngc_probe()
286 dev_info(&pdev->dev, in imx_rngc_probe()
293 static int imx_rngc_suspend(struct device *dev) in imx_rngc_suspend() argument
295 struct imx_rngc *rngc = dev_get_drvdata(dev); in imx_rngc_suspend()
302 static int imx_rngc_resume(struct device *dev) in imx_rngc_resume() argument
304 struct imx_rngc *rngc = dev_get_drvdata(dev); in imx_rngc_resume()