aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/reset/reset-ath79.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/reset/reset-ath79.c')
-rw-r--r--drivers/reset/reset-ath79.c27
1 files changed, 8 insertions, 19 deletions
diff --git a/drivers/reset/reset-ath79.c b/drivers/reset/reset-ath79.c
index 6b97631f5489..2674880e5492 100644
--- a/drivers/reset/reset-ath79.c
+++ b/drivers/reset/reset-ath79.c
@@ -1,4 +1,7 @@
1/* 1/*
2 * AR71xx Reset Controller Driver
3 * Author: Alban Bedel
4 *
2 * Copyright (C) 2015 Alban Bedel <albeu@free.fr> 5 * Copyright (C) 2015 Alban Bedel <albeu@free.fr>
3 * 6 *
4 * This program is free software; you can redistribute it and/or modify 7 * This program is free software; you can redistribute it and/or modify
@@ -13,7 +16,7 @@
13 */ 16 */
14 17
15#include <linux/io.h> 18#include <linux/io.h>
16#include <linux/module.h> 19#include <linux/init.h>
17#include <linux/platform_device.h> 20#include <linux/platform_device.h>
18#include <linux/reset-controller.h> 21#include <linux/reset-controller.h>
19#include <linux/reboot.h> 22#include <linux/reboot.h>
@@ -127,31 +130,17 @@ static int ath79_reset_probe(struct platform_device *pdev)
127 return 0; 130 return 0;
128} 131}
129 132
130static int ath79_reset_remove(struct platform_device *pdev)
131{
132 struct ath79_reset *ath79_reset = platform_get_drvdata(pdev);
133
134 unregister_restart_handler(&ath79_reset->restart_nb);
135
136 return 0;
137}
138
139static const struct of_device_id ath79_reset_dt_ids[] = { 133static const struct of_device_id ath79_reset_dt_ids[] = {
140 { .compatible = "qca,ar7100-reset", }, 134 { .compatible = "qca,ar7100-reset", },
141 { }, 135 { },
142}; 136};
143MODULE_DEVICE_TABLE(of, ath79_reset_dt_ids);
144 137
145static struct platform_driver ath79_reset_driver = { 138static struct platform_driver ath79_reset_driver = {
146 .probe = ath79_reset_probe, 139 .probe = ath79_reset_probe,
147 .remove = ath79_reset_remove,
148 .driver = { 140 .driver = {
149 .name = "ath79-reset", 141 .name = "ath79-reset",
150 .of_match_table = ath79_reset_dt_ids, 142 .of_match_table = ath79_reset_dt_ids,
143 .suppress_bind_attrs = true,
151 }, 144 },
152}; 145};
153module_platform_driver(ath79_reset_driver); 146builtin_platform_driver(ath79_reset_driver);
154
155MODULE_AUTHOR("Alban Bedel <albeu@free.fr>");
156MODULE_DESCRIPTION("AR71xx Reset Controller Driver");
157MODULE_LICENSE("GPL");