Lines Matching refs:dev
130 struct device *dev = &pdev->dev; in a21_wdt_probe() local
137 drv = devm_kzalloc(dev, sizeof(struct a21_wdt_drv), GFP_KERNEL); in a21_wdt_probe()
141 num_gpios = gpiod_count(dev, NULL); in a21_wdt_probe()
143 dev_err(dev, "gpios DT property wrong, got %d want %d", in a21_wdt_probe()
156 drv->gpios[i] = devm_gpiod_get_index(dev, NULL, i, gflags); in a21_wdt_probe()
174 watchdog_init_timeout(&a21_wdt, 30, dev); in a21_wdt_probe()
177 a21_wdt.parent = dev; in a21_wdt_probe()
190 dev_set_drvdata(dev, drv); in a21_wdt_probe()
192 ret = devm_watchdog_register_device(dev, &a21_wdt); in a21_wdt_probe()
196 dev_info(dev, "MEN A21 watchdog timer driver enabled\n"); in a21_wdt_probe()
203 struct a21_wdt_drv *drv = dev_get_drvdata(&pdev->dev); in a21_wdt_shutdown()