File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,6 @@ static struct watchdog_device mt7621_wdt_dev = {
133
133
static int mt7621_wdt_probe (struct platform_device * pdev )
134
134
{
135
135
struct resource * res ;
136
- int ret ;
137
136
138
137
res = platform_get_resource (pdev , IORESOURCE_MEM , 0 );
139
138
mt7621_wdt_base = devm_ioremap_resource (& pdev -> dev , res );
@@ -164,16 +163,7 @@ static int mt7621_wdt_probe(struct platform_device *pdev)
164
163
set_bit (WDOG_HW_RUNNING , & mt7621_wdt_dev .status );
165
164
}
166
165
167
- ret = watchdog_register_device (& mt7621_wdt_dev );
168
-
169
- return 0 ;
170
- }
171
-
172
- static int mt7621_wdt_remove (struct platform_device * pdev )
173
- {
174
- watchdog_unregister_device (& mt7621_wdt_dev );
175
-
176
- return 0 ;
166
+ return devm_watchdog_register_device (& pdev -> dev , & mt7621_wdt_dev );
177
167
}
178
168
179
169
static void mt7621_wdt_shutdown (struct platform_device * pdev )
@@ -189,7 +179,6 @@ MODULE_DEVICE_TABLE(of, mt7621_wdt_match);
189
179
190
180
static struct platform_driver mt7621_wdt_driver = {
191
181
.probe = mt7621_wdt_probe ,
192
- .remove = mt7621_wdt_remove ,
193
182
.shutdown = mt7621_wdt_shutdown ,
194
183
.driver = {
195
184
.name = KBUILD_MODNAME ,
You can’t perform that action at this time.
0 commit comments