Lines Matching full:reboot
12 #include <linux/reboot-mode.h>
15 struct reboot_mode_driver reboot; member
19 static int nvmem_reboot_mode_write(struct reboot_mode_driver *reboot, in nvmem_reboot_mode_write() argument
25 nvmem_rbm = container_of(reboot, struct nvmem_reboot_mode, reboot); in nvmem_reboot_mode_write()
29 dev_err(reboot->dev, "update reboot mode bits failed\n"); in nvmem_reboot_mode_write()
43 nvmem_rbm->reboot.dev = &pdev->dev; in nvmem_reboot_mode_probe()
44 nvmem_rbm->reboot.write = nvmem_reboot_mode_write; in nvmem_reboot_mode_probe()
46 nvmem_rbm->cell = devm_nvmem_cell_get(&pdev->dev, "reboot-mode"); in nvmem_reboot_mode_probe()
49 "failed to get the nvmem cell reboot-mode\n"); in nvmem_reboot_mode_probe()
52 ret = devm_reboot_mode_register(&pdev->dev, &nvmem_rbm->reboot); in nvmem_reboot_mode_probe()
54 dev_err(&pdev->dev, "can't register reboot mode\n"); in nvmem_reboot_mode_probe()
60 { .compatible = "nvmem-reboot-mode" },
68 .name = "nvmem-reboot-mode",
75 MODULE_DESCRIPTION("NVMEM reboot mode driver");