Lines Matching refs:dev
215 struct device *dev = &pdev->dev; in xilinx_pwm_probe() local
216 struct device_node *np = dev->of_node; in xilinx_pwm_probe()
227 return dev_err_probe(dev, ret, "could not read #pwm-cells\n"); in xilinx_pwm_probe()
229 xilinx_pwm = devm_kzalloc(dev, sizeof(*xilinx_pwm), GFP_KERNEL); in xilinx_pwm_probe()
239 priv->map = devm_regmap_init_mmio(dev, regs, in xilinx_pwm_probe()
242 return dev_err_probe(dev, PTR_ERR(priv->map), in xilinx_pwm_probe()
247 return dev_err_probe(dev, ret, in xilinx_pwm_probe()
251 return dev_err_probe(dev, -EINVAL, in xilinx_pwm_probe()
258 return dev_err_probe(dev, ret, in xilinx_pwm_probe()
262 return dev_err_probe(dev, -EINVAL, in xilinx_pwm_probe()
272 priv->clk = devm_clk_get(dev, "s_axi_aclk"); in xilinx_pwm_probe()
274 return dev_err_probe(dev, PTR_ERR(priv->clk), in xilinx_pwm_probe()
279 return dev_err_probe(dev, ret, "Clock enable failed\n"); in xilinx_pwm_probe()
282 xilinx_pwm->chip.dev = dev; in xilinx_pwm_probe()
289 return dev_err_probe(dev, ret, "Could not register PWM chip\n"); in xilinx_pwm_probe()