File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 25
25
#include <linux/moduleparam.h>
26
26
#include <linux/pm.h>
27
27
#include <linux/property.h>
28
+ #include <linux/reset.h>
28
29
#include <linux/slab.h>
29
30
#include <linux/spinlock.h>
30
31
#include <linux/types.h>
@@ -232,6 +233,7 @@ static int
232
233
sp805_wdt_probe (struct amba_device * adev , const struct amba_id * id )
233
234
{
234
235
struct sp805_wdt * wdt ;
236
+ struct reset_control * rst ;
235
237
u64 rate = 0 ;
236
238
int ret = 0 ;
237
239
@@ -264,6 +266,12 @@ sp805_wdt_probe(struct amba_device *adev, const struct amba_id *id)
264
266
return - ENODEV ;
265
267
}
266
268
269
+ rst = devm_reset_control_get_optional_exclusive (& adev -> dev , NULL );
270
+ if (IS_ERR (rst ))
271
+ return dev_err_probe (& adev -> dev , PTR_ERR (rst ), "Can not get reset\n" );
272
+
273
+ reset_control_deassert (rst );
274
+
267
275
wdt -> adev = adev ;
268
276
wdt -> wdd .info = & wdt_info ;
269
277
wdt -> wdd .ops = & wdt_ops ;
You can’t perform that action at this time.
0 commit comments