Lines Matching refs:adev
68 struct amba_device *adev; member
133 dev_err(&wdt->adev->dev, "clock enable fail"); in wdt_config()
204 sp805_wdt_probe(struct amba_device *adev, const struct amba_id *id) in sp805_wdt_probe() argument
209 wdt = devm_kzalloc(&adev->dev, sizeof(*wdt), GFP_KERNEL); in sp805_wdt_probe()
215 wdt->base = devm_ioremap_resource(&adev->dev, &adev->res); in sp805_wdt_probe()
219 wdt->clk = devm_clk_get(&adev->dev, NULL); in sp805_wdt_probe()
221 dev_warn(&adev->dev, "Clock not found\n"); in sp805_wdt_probe()
226 wdt->adev = adev; in sp805_wdt_probe()
229 wdt->wdd.parent = &adev->dev; in sp805_wdt_probe()
238 dev_err(&adev->dev, "watchdog_register_device() failed: %d\n", in sp805_wdt_probe()
242 amba_set_drvdata(adev, wdt); in sp805_wdt_probe()
244 dev_info(&adev->dev, "registration successful\n"); in sp805_wdt_probe()
248 dev_err(&adev->dev, "Probe Failed!!!\n"); in sp805_wdt_probe()
252 static int sp805_wdt_remove(struct amba_device *adev) in sp805_wdt_remove() argument
254 struct sp805_wdt *wdt = amba_get_drvdata(adev); in sp805_wdt_remove()