Searched refs:sun4ichip (Results 1 – 1 of 1) sorted by relevance
388 struct sun4i_pwm_chip *sun4ichip; in sun4i_pwm_probe() local391 sun4ichip = devm_kzalloc(&pdev->dev, sizeof(*sun4ichip), GFP_KERNEL); in sun4i_pwm_probe()392 if (!sun4ichip) in sun4i_pwm_probe()395 sun4ichip->data = of_device_get_match_data(&pdev->dev); in sun4i_pwm_probe()396 if (!sun4ichip->data) in sun4i_pwm_probe()399 sun4ichip->base = devm_platform_ioremap_resource(pdev, 0); in sun4i_pwm_probe()400 if (IS_ERR(sun4ichip->base)) in sun4i_pwm_probe()401 return PTR_ERR(sun4ichip->base); in sun4i_pwm_probe()414 sun4ichip->clk = devm_clk_get_optional(&pdev->dev, "mod"); in sun4i_pwm_probe()415 if (IS_ERR(sun4ichip->clk)) in sun4i_pwm_probe()[all …]