Lines Matching refs:adev
305 static int pl031_remove(struct amba_device *adev) in pl031_remove() argument
307 struct pl031_local *ldata = dev_get_drvdata(&adev->dev); in pl031_remove()
309 dev_pm_clear_wake_irq(&adev->dev); in pl031_remove()
310 device_init_wakeup(&adev->dev, false); in pl031_remove()
311 free_irq(adev->irq[0], ldata); in pl031_remove()
315 amba_release_regions(adev); in pl031_remove()
320 static int pl031_probe(struct amba_device *adev, const struct amba_id *id) in pl031_probe() argument
328 ret = amba_request_regions(adev, NULL); in pl031_probe()
339 ldata->base = ioremap(adev->res.start, resource_size(&adev->res)); in pl031_probe()
346 amba_set_drvdata(adev, ldata); in pl031_probe()
348 dev_dbg(&adev->dev, "designer ID = 0x%02x\n", amba_manf(adev)); in pl031_probe()
349 dev_dbg(&adev->dev, "revision = 0x%01x\n", amba_rev(adev)); in pl031_probe()
376 device_init_wakeup(&adev->dev, true); in pl031_probe()
377 ldata->rtc = rtc_device_register("pl031", &adev->dev, ops, in pl031_probe()
384 if (request_irq(adev->irq[0], pl031_interrupt, in pl031_probe()
389 dev_pm_set_wake_irq(&adev->dev, adev->irq[0]); in pl031_probe()
399 amba_release_regions(adev); in pl031_probe()