diff options
Diffstat (limited to 'drivers/watchdog')
59 files changed, 65 insertions, 65 deletions
diff --git a/drivers/watchdog/acquirewdt.c b/drivers/watchdog/acquirewdt.c index d6210d946082..957d1255d4ca 100644 --- a/drivers/watchdog/acquirewdt.c +++ b/drivers/watchdog/acquirewdt.c | |||
@@ -200,7 +200,7 @@ static int acq_open(struct inode *inode, struct file *file) | |||
200 | 200 | ||
201 | /* Activate */ | 201 | /* Activate */ |
202 | acq_keepalive(); | 202 | acq_keepalive(); |
203 | return nonseekable_open(inode, file); | 203 | return stream_open(inode, file); |
204 | } | 204 | } |
205 | 205 | ||
206 | static int acq_close(struct inode *inode, struct file *file) | 206 | static int acq_close(struct inode *inode, struct file *file) |
diff --git a/drivers/watchdog/advantechwdt.c b/drivers/watchdog/advantechwdt.c index f61944369c1a..2766af292a71 100644 --- a/drivers/watchdog/advantechwdt.c +++ b/drivers/watchdog/advantechwdt.c | |||
@@ -199,7 +199,7 @@ static int advwdt_open(struct inode *inode, struct file *file) | |||
199 | */ | 199 | */ |
200 | 200 | ||
201 | advwdt_ping(); | 201 | advwdt_ping(); |
202 | return nonseekable_open(inode, file); | 202 | return stream_open(inode, file); |
203 | } | 203 | } |
204 | 204 | ||
205 | static int advwdt_close(struct inode *inode, struct file *file) | 205 | static int advwdt_close(struct inode *inode, struct file *file) |
diff --git a/drivers/watchdog/alim1535_wdt.c b/drivers/watchdog/alim1535_wdt.c index 60f0c2eb8531..39a07bb5f6d5 100644 --- a/drivers/watchdog/alim1535_wdt.c +++ b/drivers/watchdog/alim1535_wdt.c | |||
@@ -249,7 +249,7 @@ static int ali_open(struct inode *inode, struct file *file) | |||
249 | 249 | ||
250 | /* Activate */ | 250 | /* Activate */ |
251 | ali_start(); | 251 | ali_start(); |
252 | return nonseekable_open(inode, file); | 252 | return stream_open(inode, file); |
253 | } | 253 | } |
254 | 254 | ||
255 | /* | 255 | /* |
diff --git a/drivers/watchdog/alim7101_wdt.c b/drivers/watchdog/alim7101_wdt.c index 12f7ea62dddd..7e9884960eb9 100644 --- a/drivers/watchdog/alim7101_wdt.c +++ b/drivers/watchdog/alim7101_wdt.c | |||
@@ -214,7 +214,7 @@ static int fop_open(struct inode *inode, struct file *file) | |||
214 | return -EBUSY; | 214 | return -EBUSY; |
215 | /* Good, fire up the show */ | 215 | /* Good, fire up the show */ |
216 | wdt_startup(); | 216 | wdt_startup(); |
217 | return nonseekable_open(inode, file); | 217 | return stream_open(inode, file); |
218 | } | 218 | } |
219 | 219 | ||
220 | static int fop_close(struct inode *inode, struct file *file) | 220 | static int fop_close(struct inode *inode, struct file *file) |
diff --git a/drivers/watchdog/ar7_wdt.c b/drivers/watchdog/ar7_wdt.c index ee1ab12ab04f..b9b2d06b3879 100644 --- a/drivers/watchdog/ar7_wdt.c +++ b/drivers/watchdog/ar7_wdt.c | |||
@@ -163,7 +163,7 @@ static int ar7_wdt_open(struct inode *inode, struct file *file) | |||
163 | ar7_wdt_enable_wdt(); | 163 | ar7_wdt_enable_wdt(); |
164 | expect_close = 0; | 164 | expect_close = 0; |
165 | 165 | ||
166 | return nonseekable_open(inode, file); | 166 | return stream_open(inode, file); |
167 | } | 167 | } |
168 | 168 | ||
169 | static int ar7_wdt_release(struct inode *inode, struct file *file) | 169 | static int ar7_wdt_release(struct inode *inode, struct file *file) |
diff --git a/drivers/watchdog/at91rm9200_wdt.c b/drivers/watchdog/at91rm9200_wdt.c index b45fc0aee667..907a4545dee6 100644 --- a/drivers/watchdog/at91rm9200_wdt.c +++ b/drivers/watchdog/at91rm9200_wdt.c | |||
@@ -110,7 +110,7 @@ static int at91_wdt_open(struct inode *inode, struct file *file) | |||
110 | return -EBUSY; | 110 | return -EBUSY; |
111 | 111 | ||
112 | at91_wdt_start(); | 112 | at91_wdt_start(); |
113 | return nonseekable_open(inode, file); | 113 | return stream_open(inode, file); |
114 | } | 114 | } |
115 | 115 | ||
116 | /* | 116 | /* |
diff --git a/drivers/watchdog/ath79_wdt.c b/drivers/watchdog/ath79_wdt.c index e2209bf5fa8a..4f56b63f9691 100644 --- a/drivers/watchdog/ath79_wdt.c +++ b/drivers/watchdog/ath79_wdt.c | |||
@@ -132,7 +132,7 @@ static int ath79_wdt_open(struct inode *inode, struct file *file) | |||
132 | clear_bit(WDT_FLAGS_EXPECT_CLOSE, &wdt_flags); | 132 | clear_bit(WDT_FLAGS_EXPECT_CLOSE, &wdt_flags); |
133 | ath79_wdt_enable(); | 133 | ath79_wdt_enable(); |
134 | 134 | ||
135 | return nonseekable_open(inode, file); | 135 | return stream_open(inode, file); |
136 | } | 136 | } |
137 | 137 | ||
138 | static int ath79_wdt_release(struct inode *inode, struct file *file) | 138 | static int ath79_wdt_release(struct inode *inode, struct file *file) |
diff --git a/drivers/watchdog/bcm63xx_wdt.c b/drivers/watchdog/bcm63xx_wdt.c index d3c1113e774c..e2af37c9a266 100644 --- a/drivers/watchdog/bcm63xx_wdt.c +++ b/drivers/watchdog/bcm63xx_wdt.c | |||
@@ -116,7 +116,7 @@ static int bcm63xx_wdt_open(struct inode *inode, struct file *file) | |||
116 | return -EBUSY; | 116 | return -EBUSY; |
117 | 117 | ||
118 | bcm63xx_wdt_start(); | 118 | bcm63xx_wdt_start(); |
119 | return nonseekable_open(inode, file); | 119 | return stream_open(inode, file); |
120 | } | 120 | } |
121 | 121 | ||
122 | static int bcm63xx_wdt_release(struct inode *inode, struct file *file) | 122 | static int bcm63xx_wdt_release(struct inode *inode, struct file *file) |
diff --git a/drivers/watchdog/cpu5wdt.c b/drivers/watchdog/cpu5wdt.c index 6cfb102c397c..475360de6e9e 100644 --- a/drivers/watchdog/cpu5wdt.c +++ b/drivers/watchdog/cpu5wdt.c | |||
@@ -140,7 +140,7 @@ static int cpu5wdt_open(struct inode *inode, struct file *file) | |||
140 | { | 140 | { |
141 | if (test_and_set_bit(0, &cpu5wdt_device.inuse)) | 141 | if (test_and_set_bit(0, &cpu5wdt_device.inuse)) |
142 | return -EBUSY; | 142 | return -EBUSY; |
143 | return nonseekable_open(inode, file); | 143 | return stream_open(inode, file); |
144 | } | 144 | } |
145 | 145 | ||
146 | static int cpu5wdt_release(struct inode *inode, struct file *file) | 146 | static int cpu5wdt_release(struct inode *inode, struct file *file) |
diff --git a/drivers/watchdog/cpwd.c b/drivers/watchdog/cpwd.c index 32156e199c51..b5b078bdebe6 100644 --- a/drivers/watchdog/cpwd.c +++ b/drivers/watchdog/cpwd.c | |||
@@ -394,7 +394,7 @@ static int cpwd_open(struct inode *inode, struct file *f) | |||
394 | 394 | ||
395 | mutex_unlock(&cpwd_mutex); | 395 | mutex_unlock(&cpwd_mutex); |
396 | 396 | ||
397 | return nonseekable_open(inode, f); | 397 | return stream_open(inode, f); |
398 | } | 398 | } |
399 | 399 | ||
400 | static int cpwd_release(struct inode *inode, struct file *file) | 400 | static int cpwd_release(struct inode *inode, struct file *file) |
diff --git a/drivers/watchdog/eurotechwdt.c b/drivers/watchdog/eurotechwdt.c index 47f77a6fdfd6..89129e6fa9b6 100644 --- a/drivers/watchdog/eurotechwdt.c +++ b/drivers/watchdog/eurotechwdt.c | |||
@@ -316,7 +316,7 @@ static int eurwdt_open(struct inode *inode, struct file *file) | |||
316 | eurwdt_timeout = WDT_TIMEOUT; /* initial timeout */ | 316 | eurwdt_timeout = WDT_TIMEOUT; /* initial timeout */ |
317 | /* Activate the WDT */ | 317 | /* Activate the WDT */ |
318 | eurwdt_activate_timer(); | 318 | eurwdt_activate_timer(); |
319 | return nonseekable_open(inode, file); | 319 | return stream_open(inode, file); |
320 | } | 320 | } |
321 | 321 | ||
322 | /** | 322 | /** |
diff --git a/drivers/watchdog/f71808e_wdt.c b/drivers/watchdog/f71808e_wdt.c index 9a1c761258ce..021c6ace9462 100644 --- a/drivers/watchdog/f71808e_wdt.c +++ b/drivers/watchdog/f71808e_wdt.c | |||
@@ -525,7 +525,7 @@ static int watchdog_open(struct inode *inode, struct file *file) | |||
525 | __module_get(THIS_MODULE); | 525 | __module_get(THIS_MODULE); |
526 | 526 | ||
527 | watchdog.expect_close = 0; | 527 | watchdog.expect_close = 0; |
528 | return nonseekable_open(inode, file); | 528 | return stream_open(inode, file); |
529 | } | 529 | } |
530 | 530 | ||
531 | static int watchdog_release(struct inode *inode, struct file *file) | 531 | static int watchdog_release(struct inode *inode, struct file *file) |
diff --git a/drivers/watchdog/gef_wdt.c b/drivers/watchdog/gef_wdt.c index 006e2348022c..26350b319505 100644 --- a/drivers/watchdog/gef_wdt.c +++ b/drivers/watchdog/gef_wdt.c | |||
@@ -229,7 +229,7 @@ static int gef_wdt_open(struct inode *inode, struct file *file) | |||
229 | 229 | ||
230 | gef_wdt_handler_enable(); | 230 | gef_wdt_handler_enable(); |
231 | 231 | ||
232 | return nonseekable_open(inode, file); | 232 | return stream_open(inode, file); |
233 | } | 233 | } |
234 | 234 | ||
235 | static int gef_wdt_release(struct inode *inode, struct file *file) | 235 | static int gef_wdt_release(struct inode *inode, struct file *file) |
diff --git a/drivers/watchdog/geodewdt.c b/drivers/watchdog/geodewdt.c index 88e01238f01b..c5a727da6657 100644 --- a/drivers/watchdog/geodewdt.c +++ b/drivers/watchdog/geodewdt.c | |||
@@ -92,7 +92,7 @@ static int geodewdt_open(struct inode *inode, struct file *file) | |||
92 | __module_get(THIS_MODULE); | 92 | __module_get(THIS_MODULE); |
93 | 93 | ||
94 | geodewdt_ping(); | 94 | geodewdt_ping(); |
95 | return nonseekable_open(inode, file); | 95 | return stream_open(inode, file); |
96 | } | 96 | } |
97 | 97 | ||
98 | static int geodewdt_release(struct inode *inode, struct file *file) | 98 | static int geodewdt_release(struct inode *inode, struct file *file) |
diff --git a/drivers/watchdog/ib700wdt.c b/drivers/watchdog/ib700wdt.c index cc262284a6aa..30d6cec582af 100644 --- a/drivers/watchdog/ib700wdt.c +++ b/drivers/watchdog/ib700wdt.c | |||
@@ -238,7 +238,7 @@ static int ibwdt_open(struct inode *inode, struct file *file) | |||
238 | 238 | ||
239 | /* Activate */ | 239 | /* Activate */ |
240 | ibwdt_ping(); | 240 | ibwdt_ping(); |
241 | return nonseekable_open(inode, file); | 241 | return stream_open(inode, file); |
242 | } | 242 | } |
243 | 243 | ||
244 | static int ibwdt_close(struct inode *inode, struct file *file) | 244 | static int ibwdt_close(struct inode *inode, struct file *file) |
diff --git a/drivers/watchdog/ibmasr.c b/drivers/watchdog/ibmasr.c index 366b0474f278..897f7eda9e6a 100644 --- a/drivers/watchdog/ibmasr.c +++ b/drivers/watchdog/ibmasr.c | |||
@@ -323,7 +323,7 @@ static int asr_open(struct inode *inode, struct file *file) | |||
323 | asr_toggle(); | 323 | asr_toggle(); |
324 | asr_enable(); | 324 | asr_enable(); |
325 | 325 | ||
326 | return nonseekable_open(inode, file); | 326 | return stream_open(inode, file); |
327 | } | 327 | } |
328 | 328 | ||
329 | static int asr_release(struct inode *inode, struct file *file) | 329 | static int asr_release(struct inode *inode, struct file *file) |
diff --git a/drivers/watchdog/indydog.c b/drivers/watchdog/indydog.c index 5d20cdd30efe..5592b975fe3a 100644 --- a/drivers/watchdog/indydog.c +++ b/drivers/watchdog/indydog.c | |||
@@ -77,7 +77,7 @@ static int indydog_open(struct inode *inode, struct file *file) | |||
77 | 77 | ||
78 | pr_info("Started watchdog timer\n"); | 78 | pr_info("Started watchdog timer\n"); |
79 | 79 | ||
80 | return nonseekable_open(inode, file); | 80 | return stream_open(inode, file); |
81 | } | 81 | } |
82 | 82 | ||
83 | static int indydog_release(struct inode *inode, struct file *file) | 83 | static int indydog_release(struct inode *inode, struct file *file) |
diff --git a/drivers/watchdog/intel_scu_watchdog.c b/drivers/watchdog/intel_scu_watchdog.c index 0caab6241eb7..3181a72c7ddf 100644 --- a/drivers/watchdog/intel_scu_watchdog.c +++ b/drivers/watchdog/intel_scu_watchdog.c | |||
@@ -304,7 +304,7 @@ static int intel_scu_open(struct inode *inode, struct file *file) | |||
304 | if (watchdog_device.driver_closed) | 304 | if (watchdog_device.driver_closed) |
305 | return -EPERM; | 305 | return -EPERM; |
306 | 306 | ||
307 | return nonseekable_open(inode, file); | 307 | return stream_open(inode, file); |
308 | } | 308 | } |
309 | 309 | ||
310 | static int intel_scu_release(struct inode *inode, struct file *file) | 310 | static int intel_scu_release(struct inode *inode, struct file *file) |
diff --git a/drivers/watchdog/iop_wdt.c b/drivers/watchdog/iop_wdt.c index b16013ffacc2..d910a7dec21b 100644 --- a/drivers/watchdog/iop_wdt.c +++ b/drivers/watchdog/iop_wdt.c | |||
@@ -101,7 +101,7 @@ static int iop_wdt_open(struct inode *inode, struct file *file) | |||
101 | clear_bit(WDT_OK_TO_CLOSE, &wdt_status); | 101 | clear_bit(WDT_OK_TO_CLOSE, &wdt_status); |
102 | wdt_enable(); | 102 | wdt_enable(); |
103 | set_bit(WDT_ENABLED, &wdt_status); | 103 | set_bit(WDT_ENABLED, &wdt_status); |
104 | return nonseekable_open(inode, file); | 104 | return stream_open(inode, file); |
105 | } | 105 | } |
106 | 106 | ||
107 | static ssize_t iop_wdt_write(struct file *file, const char *data, size_t len, | 107 | static ssize_t iop_wdt_write(struct file *file, const char *data, size_t len, |
diff --git a/drivers/watchdog/it8712f_wdt.c b/drivers/watchdog/it8712f_wdt.c index 41b3979a9d87..b1567240a0e6 100644 --- a/drivers/watchdog/it8712f_wdt.c +++ b/drivers/watchdog/it8712f_wdt.c | |||
@@ -327,7 +327,7 @@ static int it8712f_wdt_open(struct inode *inode, struct file *file) | |||
327 | ret = it8712f_wdt_enable(); | 327 | ret = it8712f_wdt_enable(); |
328 | if (ret) | 328 | if (ret) |
329 | return ret; | 329 | return ret; |
330 | return nonseekable_open(inode, file); | 330 | return stream_open(inode, file); |
331 | } | 331 | } |
332 | 332 | ||
333 | static int it8712f_wdt_release(struct inode *inode, struct file *file) | 333 | static int it8712f_wdt_release(struct inode *inode, struct file *file) |
diff --git a/drivers/watchdog/ixp4xx_wdt.c b/drivers/watchdog/ixp4xx_wdt.c index f20cc53ff719..dd139cda936c 100644 --- a/drivers/watchdog/ixp4xx_wdt.c +++ b/drivers/watchdog/ixp4xx_wdt.c | |||
@@ -65,7 +65,7 @@ static int ixp4xx_wdt_open(struct inode *inode, struct file *file) | |||
65 | 65 | ||
66 | clear_bit(WDT_OK_TO_CLOSE, &wdt_status); | 66 | clear_bit(WDT_OK_TO_CLOSE, &wdt_status); |
67 | wdt_enable(); | 67 | wdt_enable(); |
68 | return nonseekable_open(inode, file); | 68 | return stream_open(inode, file); |
69 | } | 69 | } |
70 | 70 | ||
71 | static ssize_t | 71 | static ssize_t |
diff --git a/drivers/watchdog/ks8695_wdt.c b/drivers/watchdog/ks8695_wdt.c index 1e41818a44bc..0565cf30017b 100644 --- a/drivers/watchdog/ks8695_wdt.c +++ b/drivers/watchdog/ks8695_wdt.c | |||
@@ -142,7 +142,7 @@ static int ks8695_wdt_open(struct inode *inode, struct file *file) | |||
142 | return -EBUSY; | 142 | return -EBUSY; |
143 | 143 | ||
144 | ks8695_wdt_start(); | 144 | ks8695_wdt_start(); |
145 | return nonseekable_open(inode, file); | 145 | return stream_open(inode, file); |
146 | } | 146 | } |
147 | 147 | ||
148 | /* | 148 | /* |
diff --git a/drivers/watchdog/m54xx_wdt.c b/drivers/watchdog/m54xx_wdt.c index da6fa2b68074..752d03620f0a 100644 --- a/drivers/watchdog/m54xx_wdt.c +++ b/drivers/watchdog/m54xx_wdt.c | |||
@@ -85,7 +85,7 @@ static int m54xx_wdt_open(struct inode *inode, struct file *file) | |||
85 | 85 | ||
86 | clear_bit(WDT_OK_TO_CLOSE, &wdt_status); | 86 | clear_bit(WDT_OK_TO_CLOSE, &wdt_status); |
87 | wdt_enable(); | 87 | wdt_enable(); |
88 | return nonseekable_open(inode, file); | 88 | return stream_open(inode, file); |
89 | } | 89 | } |
90 | 90 | ||
91 | static ssize_t m54xx_wdt_write(struct file *file, const char *data, | 91 | static ssize_t m54xx_wdt_write(struct file *file, const char *data, |
diff --git a/drivers/watchdog/machzwd.c b/drivers/watchdog/machzwd.c index 88d823d87a4b..53759415cf06 100644 --- a/drivers/watchdog/machzwd.c +++ b/drivers/watchdog/machzwd.c | |||
@@ -333,7 +333,7 @@ static int zf_open(struct inode *inode, struct file *file) | |||
333 | if (nowayout) | 333 | if (nowayout) |
334 | __module_get(THIS_MODULE); | 334 | __module_get(THIS_MODULE); |
335 | zf_timer_on(); | 335 | zf_timer_on(); |
336 | return nonseekable_open(inode, file); | 336 | return stream_open(inode, file); |
337 | } | 337 | } |
338 | 338 | ||
339 | static int zf_close(struct inode *inode, struct file *file) | 339 | static int zf_close(struct inode *inode, struct file *file) |
diff --git a/drivers/watchdog/mixcomwd.c b/drivers/watchdog/mixcomwd.c index 3cc07447c655..ece56db0a379 100644 --- a/drivers/watchdog/mixcomwd.c +++ b/drivers/watchdog/mixcomwd.c | |||
@@ -150,7 +150,7 @@ static int mixcomwd_open(struct inode *inode, struct file *file) | |||
150 | mixcomwd_timer_alive = 0; | 150 | mixcomwd_timer_alive = 0; |
151 | } | 151 | } |
152 | } | 152 | } |
153 | return nonseekable_open(inode, file); | 153 | return stream_open(inode, file); |
154 | } | 154 | } |
155 | 155 | ||
156 | static int mixcomwd_release(struct inode *inode, struct file *file) | 156 | static int mixcomwd_release(struct inode *inode, struct file *file) |
diff --git a/drivers/watchdog/mtx-1_wdt.c b/drivers/watchdog/mtx-1_wdt.c index e028e0a2eca0..25a92857b217 100644 --- a/drivers/watchdog/mtx-1_wdt.c +++ b/drivers/watchdog/mtx-1_wdt.c | |||
@@ -118,7 +118,7 @@ static int mtx1_wdt_open(struct inode *inode, struct file *file) | |||
118 | { | 118 | { |
119 | if (test_and_set_bit(0, &mtx1_wdt_device.inuse)) | 119 | if (test_and_set_bit(0, &mtx1_wdt_device.inuse)) |
120 | return -EBUSY; | 120 | return -EBUSY; |
121 | return nonseekable_open(inode, file); | 121 | return stream_open(inode, file); |
122 | } | 122 | } |
123 | 123 | ||
124 | 124 | ||
diff --git a/drivers/watchdog/mv64x60_wdt.c b/drivers/watchdog/mv64x60_wdt.c index 315275d7bab6..c785f4f0a196 100644 --- a/drivers/watchdog/mv64x60_wdt.c +++ b/drivers/watchdog/mv64x60_wdt.c | |||
@@ -133,7 +133,7 @@ static int mv64x60_wdt_open(struct inode *inode, struct file *file) | |||
133 | 133 | ||
134 | mv64x60_wdt_handler_enable(); | 134 | mv64x60_wdt_handler_enable(); |
135 | 135 | ||
136 | return nonseekable_open(inode, file); | 136 | return stream_open(inode, file); |
137 | } | 137 | } |
138 | 138 | ||
139 | static int mv64x60_wdt_release(struct inode *inode, struct file *file) | 139 | static int mv64x60_wdt_release(struct inode *inode, struct file *file) |
diff --git a/drivers/watchdog/nuc900_wdt.c b/drivers/watchdog/nuc900_wdt.c index 830bd04ff911..8a36350bab7b 100644 --- a/drivers/watchdog/nuc900_wdt.c +++ b/drivers/watchdog/nuc900_wdt.c | |||
@@ -131,7 +131,7 @@ static int nuc900_wdt_open(struct inode *inode, struct file *file) | |||
131 | 131 | ||
132 | nuc900_wdt_start(); | 132 | nuc900_wdt_start(); |
133 | 133 | ||
134 | return nonseekable_open(inode, file); | 134 | return stream_open(inode, file); |
135 | } | 135 | } |
136 | 136 | ||
137 | static int nuc900_wdt_close(struct inode *inode, struct file *file) | 137 | static int nuc900_wdt_close(struct inode *inode, struct file *file) |
diff --git a/drivers/watchdog/nv_tco.c b/drivers/watchdog/nv_tco.c index a0fabf6f92b0..98d4f5371cf4 100644 --- a/drivers/watchdog/nv_tco.c +++ b/drivers/watchdog/nv_tco.c | |||
@@ -161,7 +161,7 @@ static int nv_tco_open(struct inode *inode, struct file *file) | |||
161 | /* Reload and activate timer */ | 161 | /* Reload and activate timer */ |
162 | tco_timer_keepalive(); | 162 | tco_timer_keepalive(); |
163 | tco_timer_start(); | 163 | tco_timer_start(); |
164 | return nonseekable_open(inode, file); | 164 | return stream_open(inode, file); |
165 | } | 165 | } |
166 | 166 | ||
167 | static int nv_tco_release(struct inode *inode, struct file *file) | 167 | static int nv_tco_release(struct inode *inode, struct file *file) |
diff --git a/drivers/watchdog/pc87413_wdt.c b/drivers/watchdog/pc87413_wdt.c index 2ffa39b46970..ca21d6c240a3 100644 --- a/drivers/watchdog/pc87413_wdt.c +++ b/drivers/watchdog/pc87413_wdt.c | |||
@@ -286,7 +286,7 @@ static int pc87413_open(struct inode *inode, struct file *file) | |||
286 | 286 | ||
287 | pr_info("Watchdog enabled. Timeout set to %d minute(s).\n", timeout); | 287 | pr_info("Watchdog enabled. Timeout set to %d minute(s).\n", timeout); |
288 | 288 | ||
289 | return nonseekable_open(inode, file); | 289 | return stream_open(inode, file); |
290 | } | 290 | } |
291 | 291 | ||
292 | /** | 292 | /** |
diff --git a/drivers/watchdog/pcwd.c b/drivers/watchdog/pcwd.c index b72ce68eacd3..a3415cf07c98 100644 --- a/drivers/watchdog/pcwd.c +++ b/drivers/watchdog/pcwd.c | |||
@@ -695,7 +695,7 @@ static int pcwd_open(struct inode *inode, struct file *file) | |||
695 | /* Activate */ | 695 | /* Activate */ |
696 | pcwd_start(); | 696 | pcwd_start(); |
697 | pcwd_keepalive(); | 697 | pcwd_keepalive(); |
698 | return nonseekable_open(inode, file); | 698 | return stream_open(inode, file); |
699 | } | 699 | } |
700 | 700 | ||
701 | static int pcwd_close(struct inode *inode, struct file *file) | 701 | static int pcwd_close(struct inode *inode, struct file *file) |
@@ -734,7 +734,7 @@ static int pcwd_temp_open(struct inode *inode, struct file *file) | |||
734 | if (!pcwd_private.supports_temp) | 734 | if (!pcwd_private.supports_temp) |
735 | return -ENODEV; | 735 | return -ENODEV; |
736 | 736 | ||
737 | return nonseekable_open(inode, file); | 737 | return stream_open(inode, file); |
738 | } | 738 | } |
739 | 739 | ||
740 | static int pcwd_temp_close(struct inode *inode, struct file *file) | 740 | static int pcwd_temp_close(struct inode *inode, struct file *file) |
diff --git a/drivers/watchdog/pcwd_pci.c b/drivers/watchdog/pcwd_pci.c index 1f78f0908621..5773d2591d3f 100644 --- a/drivers/watchdog/pcwd_pci.c +++ b/drivers/watchdog/pcwd_pci.c | |||
@@ -578,7 +578,7 @@ static int pcipcwd_open(struct inode *inode, struct file *file) | |||
578 | /* Activate */ | 578 | /* Activate */ |
579 | pcipcwd_start(); | 579 | pcipcwd_start(); |
580 | pcipcwd_keepalive(); | 580 | pcipcwd_keepalive(); |
581 | return nonseekable_open(inode, file); | 581 | return stream_open(inode, file); |
582 | } | 582 | } |
583 | 583 | ||
584 | static int pcipcwd_release(struct inode *inode, struct file *file) | 584 | static int pcipcwd_release(struct inode *inode, struct file *file) |
@@ -620,7 +620,7 @@ static int pcipcwd_temp_open(struct inode *inode, struct file *file) | |||
620 | if (!pcipcwd_private.supports_temp) | 620 | if (!pcipcwd_private.supports_temp) |
621 | return -ENODEV; | 621 | return -ENODEV; |
622 | 622 | ||
623 | return nonseekable_open(inode, file); | 623 | return stream_open(inode, file); |
624 | } | 624 | } |
625 | 625 | ||
626 | static int pcipcwd_temp_release(struct inode *inode, struct file *file) | 626 | static int pcipcwd_temp_release(struct inode *inode, struct file *file) |
diff --git a/drivers/watchdog/pcwd_usb.c b/drivers/watchdog/pcwd_usb.c index 4d02f26156f9..5de6182dae33 100644 --- a/drivers/watchdog/pcwd_usb.c +++ b/drivers/watchdog/pcwd_usb.c | |||
@@ -485,7 +485,7 @@ static int usb_pcwd_open(struct inode *inode, struct file *file) | |||
485 | /* Activate */ | 485 | /* Activate */ |
486 | usb_pcwd_start(usb_pcwd_device); | 486 | usb_pcwd_start(usb_pcwd_device); |
487 | usb_pcwd_keepalive(usb_pcwd_device); | 487 | usb_pcwd_keepalive(usb_pcwd_device); |
488 | return nonseekable_open(inode, file); | 488 | return stream_open(inode, file); |
489 | } | 489 | } |
490 | 490 | ||
491 | static int usb_pcwd_release(struct inode *inode, struct file *file) | 491 | static int usb_pcwd_release(struct inode *inode, struct file *file) |
@@ -524,7 +524,7 @@ static ssize_t usb_pcwd_temperature_read(struct file *file, char __user *data, | |||
524 | 524 | ||
525 | static int usb_pcwd_temperature_open(struct inode *inode, struct file *file) | 525 | static int usb_pcwd_temperature_open(struct inode *inode, struct file *file) |
526 | { | 526 | { |
527 | return nonseekable_open(inode, file); | 527 | return stream_open(inode, file); |
528 | } | 528 | } |
529 | 529 | ||
530 | static int usb_pcwd_temperature_release(struct inode *inode, struct file *file) | 530 | static int usb_pcwd_temperature_release(struct inode *inode, struct file *file) |
diff --git a/drivers/watchdog/pika_wdt.c b/drivers/watchdog/pika_wdt.c index bb97f5b2f7eb..8938b3fb2b2d 100644 --- a/drivers/watchdog/pika_wdt.c +++ b/drivers/watchdog/pika_wdt.c | |||
@@ -118,7 +118,7 @@ static int pikawdt_open(struct inode *inode, struct file *file) | |||
118 | 118 | ||
119 | pikawdt_start(); | 119 | pikawdt_start(); |
120 | 120 | ||
121 | return nonseekable_open(inode, file); | 121 | return stream_open(inode, file); |
122 | } | 122 | } |
123 | 123 | ||
124 | /* | 124 | /* |
diff --git a/drivers/watchdog/pnx833x_wdt.c b/drivers/watchdog/pnx833x_wdt.c index 882fdcb46ad1..312899f39fd2 100644 --- a/drivers/watchdog/pnx833x_wdt.c +++ b/drivers/watchdog/pnx833x_wdt.c | |||
@@ -116,7 +116,7 @@ static int pnx833x_wdt_open(struct inode *inode, struct file *file) | |||
116 | 116 | ||
117 | pr_info("Started watchdog timer\n"); | 117 | pr_info("Started watchdog timer\n"); |
118 | 118 | ||
119 | return nonseekable_open(inode, file); | 119 | return stream_open(inode, file); |
120 | } | 120 | } |
121 | 121 | ||
122 | static int pnx833x_wdt_release(struct inode *inode, struct file *file) | 122 | static int pnx833x_wdt_release(struct inode *inode, struct file *file) |
diff --git a/drivers/watchdog/rc32434_wdt.c b/drivers/watchdog/rc32434_wdt.c index 3a75f3b53452..e74d5cf272ab 100644 --- a/drivers/watchdog/rc32434_wdt.c +++ b/drivers/watchdog/rc32434_wdt.c | |||
@@ -150,7 +150,7 @@ static int rc32434_wdt_open(struct inode *inode, struct file *file) | |||
150 | rc32434_wdt_start(); | 150 | rc32434_wdt_start(); |
151 | rc32434_wdt_ping(); | 151 | rc32434_wdt_ping(); |
152 | 152 | ||
153 | return nonseekable_open(inode, file); | 153 | return stream_open(inode, file); |
154 | } | 154 | } |
155 | 155 | ||
156 | static int rc32434_wdt_release(struct inode *inode, struct file *file) | 156 | static int rc32434_wdt_release(struct inode *inode, struct file *file) |
diff --git a/drivers/watchdog/rdc321x_wdt.c b/drivers/watchdog/rdc321x_wdt.c index a281aa84bfb1..4382e9556860 100644 --- a/drivers/watchdog/rdc321x_wdt.c +++ b/drivers/watchdog/rdc321x_wdt.c | |||
@@ -142,7 +142,7 @@ static int rdc321x_wdt_open(struct inode *inode, struct file *file) | |||
142 | if (test_and_set_bit(0, &rdc321x_wdt_device.inuse)) | 142 | if (test_and_set_bit(0, &rdc321x_wdt_device.inuse)) |
143 | return -EBUSY; | 143 | return -EBUSY; |
144 | 144 | ||
145 | return nonseekable_open(inode, file); | 145 | return stream_open(inode, file); |
146 | } | 146 | } |
147 | 147 | ||
148 | static int rdc321x_wdt_release(struct inode *inode, struct file *file) | 148 | static int rdc321x_wdt_release(struct inode *inode, struct file *file) |
diff --git a/drivers/watchdog/riowd.c b/drivers/watchdog/riowd.c index aba53424605e..f7f7a7a62022 100644 --- a/drivers/watchdog/riowd.c +++ b/drivers/watchdog/riowd.c | |||
@@ -76,7 +76,7 @@ static void riowd_writereg(struct riowd *p, u8 val, int index) | |||
76 | 76 | ||
77 | static int riowd_open(struct inode *inode, struct file *filp) | 77 | static int riowd_open(struct inode *inode, struct file *filp) |
78 | { | 78 | { |
79 | nonseekable_open(inode, filp); | 79 | stream_open(inode, filp); |
80 | return 0; | 80 | return 0; |
81 | } | 81 | } |
82 | 82 | ||
diff --git a/drivers/watchdog/sa1100_wdt.c b/drivers/watchdog/sa1100_wdt.c index d3be4f831db5..bfa035e1a75e 100644 --- a/drivers/watchdog/sa1100_wdt.c +++ b/drivers/watchdog/sa1100_wdt.c | |||
@@ -59,7 +59,7 @@ static int sa1100dog_open(struct inode *inode, struct file *file) | |||
59 | writel_relaxed(OSSR_M3, OSSR); | 59 | writel_relaxed(OSSR_M3, OSSR); |
60 | writel_relaxed(OWER_WME, OWER); | 60 | writel_relaxed(OWER_WME, OWER); |
61 | writel_relaxed(readl_relaxed(OIER) | OIER_E3, OIER); | 61 | writel_relaxed(readl_relaxed(OIER) | OIER_E3, OIER); |
62 | return nonseekable_open(inode, file); | 62 | return stream_open(inode, file); |
63 | } | 63 | } |
64 | 64 | ||
65 | /* | 65 | /* |
diff --git a/drivers/watchdog/sb_wdog.c b/drivers/watchdog/sb_wdog.c index 3abae50773b8..0692d42e5c67 100644 --- a/drivers/watchdog/sb_wdog.c +++ b/drivers/watchdog/sb_wdog.c | |||
@@ -105,7 +105,7 @@ static const struct watchdog_info ident = { | |||
105 | */ | 105 | */ |
106 | static int sbwdog_open(struct inode *inode, struct file *file) | 106 | static int sbwdog_open(struct inode *inode, struct file *file) |
107 | { | 107 | { |
108 | nonseekable_open(inode, file); | 108 | stream_open(inode, file); |
109 | if (test_and_set_bit(0, &sbwdog_gate)) | 109 | if (test_and_set_bit(0, &sbwdog_gate)) |
110 | return -EBUSY; | 110 | return -EBUSY; |
111 | __module_get(THIS_MODULE); | 111 | __module_get(THIS_MODULE); |
diff --git a/drivers/watchdog/sbc60xxwdt.c b/drivers/watchdog/sbc60xxwdt.c index 72d15fd1f183..4d127a91cbdc 100644 --- a/drivers/watchdog/sbc60xxwdt.c +++ b/drivers/watchdog/sbc60xxwdt.c | |||
@@ -208,7 +208,7 @@ static int fop_open(struct inode *inode, struct file *file) | |||
208 | 208 | ||
209 | /* Good, fire up the show */ | 209 | /* Good, fire up the show */ |
210 | wdt_startup(); | 210 | wdt_startup(); |
211 | return nonseekable_open(inode, file); | 211 | return stream_open(inode, file); |
212 | } | 212 | } |
213 | 213 | ||
214 | static int fop_close(struct inode *inode, struct file *file) | 214 | static int fop_close(struct inode *inode, struct file *file) |
diff --git a/drivers/watchdog/sbc7240_wdt.c b/drivers/watchdog/sbc7240_wdt.c index 5f268add17ce..efc81b318939 100644 --- a/drivers/watchdog/sbc7240_wdt.c +++ b/drivers/watchdog/sbc7240_wdt.c | |||
@@ -136,7 +136,7 @@ static int fop_open(struct inode *inode, struct file *file) | |||
136 | 136 | ||
137 | wdt_enable(); | 137 | wdt_enable(); |
138 | 138 | ||
139 | return nonseekable_open(inode, file); | 139 | return stream_open(inode, file); |
140 | } | 140 | } |
141 | 141 | ||
142 | static int fop_close(struct inode *inode, struct file *file) | 142 | static int fop_close(struct inode *inode, struct file *file) |
diff --git a/drivers/watchdog/sbc8360.c b/drivers/watchdog/sbc8360.c index da60560ca446..3396024e7b76 100644 --- a/drivers/watchdog/sbc8360.c +++ b/drivers/watchdog/sbc8360.c | |||
@@ -271,7 +271,7 @@ static int sbc8360_open(struct inode *inode, struct file *file) | |||
271 | /* Activate and ping once to start the countdown */ | 271 | /* Activate and ping once to start the countdown */ |
272 | sbc8360_activate(); | 272 | sbc8360_activate(); |
273 | sbc8360_ping(); | 273 | sbc8360_ping(); |
274 | return nonseekable_open(inode, file); | 274 | return stream_open(inode, file); |
275 | } | 275 | } |
276 | 276 | ||
277 | static int sbc8360_close(struct inode *inode, struct file *file) | 277 | static int sbc8360_close(struct inode *inode, struct file *file) |
diff --git a/drivers/watchdog/sbc_epx_c3.c b/drivers/watchdog/sbc_epx_c3.c index a1c502e0d8ec..783037ffd7d8 100644 --- a/drivers/watchdog/sbc_epx_c3.c +++ b/drivers/watchdog/sbc_epx_c3.c | |||
@@ -78,7 +78,7 @@ static int epx_c3_open(struct inode *inode, struct file *file) | |||
78 | epx_c3_alive = 1; | 78 | epx_c3_alive = 1; |
79 | pr_info("Started watchdog timer\n"); | 79 | pr_info("Started watchdog timer\n"); |
80 | 80 | ||
81 | return nonseekable_open(inode, file); | 81 | return stream_open(inode, file); |
82 | } | 82 | } |
83 | 83 | ||
84 | static int epx_c3_release(struct inode *inode, struct file *file) | 84 | static int epx_c3_release(struct inode *inode, struct file *file) |
diff --git a/drivers/watchdog/sbc_fitpc2_wdt.c b/drivers/watchdog/sbc_fitpc2_wdt.c index a517d8bae757..3822a60a8d2b 100644 --- a/drivers/watchdog/sbc_fitpc2_wdt.c +++ b/drivers/watchdog/sbc_fitpc2_wdt.c | |||
@@ -75,7 +75,7 @@ static int fitpc2_wdt_open(struct inode *inode, struct file *file) | |||
75 | 75 | ||
76 | wdt_enable(); | 76 | wdt_enable(); |
77 | 77 | ||
78 | return nonseekable_open(inode, file); | 78 | return stream_open(inode, file); |
79 | } | 79 | } |
80 | 80 | ||
81 | static ssize_t fitpc2_wdt_write(struct file *file, const char *data, | 81 | static ssize_t fitpc2_wdt_write(struct file *file, const char *data, |
diff --git a/drivers/watchdog/sc1200wdt.c b/drivers/watchdog/sc1200wdt.c index e035a4d4b299..3c2e9355410a 100644 --- a/drivers/watchdog/sc1200wdt.c +++ b/drivers/watchdog/sc1200wdt.c | |||
@@ -178,7 +178,7 @@ static int sc1200wdt_open(struct inode *inode, struct file *file) | |||
178 | sc1200wdt_start(); | 178 | sc1200wdt_start(); |
179 | pr_info("Watchdog enabled, timeout = %d min(s)", timeout); | 179 | pr_info("Watchdog enabled, timeout = %d min(s)", timeout); |
180 | 180 | ||
181 | return nonseekable_open(inode, file); | 181 | return stream_open(inode, file); |
182 | } | 182 | } |
183 | 183 | ||
184 | 184 | ||
diff --git a/drivers/watchdog/sc520_wdt.c b/drivers/watchdog/sc520_wdt.c index 403542f9ed8d..44797414c886 100644 --- a/drivers/watchdog/sc520_wdt.c +++ b/drivers/watchdog/sc520_wdt.c | |||
@@ -258,7 +258,7 @@ static int fop_open(struct inode *inode, struct file *file) | |||
258 | 258 | ||
259 | /* Good, fire up the show */ | 259 | /* Good, fire up the show */ |
260 | wdt_startup(); | 260 | wdt_startup(); |
261 | return nonseekable_open(inode, file); | 261 | return stream_open(inode, file); |
262 | } | 262 | } |
263 | 263 | ||
264 | static int fop_close(struct inode *inode, struct file *file) | 264 | static int fop_close(struct inode *inode, struct file *file) |
diff --git a/drivers/watchdog/sch311x_wdt.c b/drivers/watchdog/sch311x_wdt.c index 814cdf539b0f..ed6e9fac5d74 100644 --- a/drivers/watchdog/sch311x_wdt.c +++ b/drivers/watchdog/sch311x_wdt.c | |||
@@ -316,7 +316,7 @@ static int sch311x_wdt_open(struct inode *inode, struct file *file) | |||
316 | * Activate | 316 | * Activate |
317 | */ | 317 | */ |
318 | sch311x_wdt_start(); | 318 | sch311x_wdt_start(); |
319 | return nonseekable_open(inode, file); | 319 | return stream_open(inode, file); |
320 | } | 320 | } |
321 | 321 | ||
322 | static int sch311x_wdt_close(struct inode *inode, struct file *file) | 322 | static int sch311x_wdt_close(struct inode *inode, struct file *file) |
diff --git a/drivers/watchdog/scx200_wdt.c b/drivers/watchdog/scx200_wdt.c index ec4063ebb41a..85f2d8e06cd0 100644 --- a/drivers/watchdog/scx200_wdt.c +++ b/drivers/watchdog/scx200_wdt.c | |||
@@ -102,7 +102,7 @@ static int scx200_wdt_open(struct inode *inode, struct file *file) | |||
102 | return -EBUSY; | 102 | return -EBUSY; |
103 | scx200_wdt_enable(); | 103 | scx200_wdt_enable(); |
104 | 104 | ||
105 | return nonseekable_open(inode, file); | 105 | return stream_open(inode, file); |
106 | } | 106 | } |
107 | 107 | ||
108 | static int scx200_wdt_release(struct inode *inode, struct file *file) | 108 | static int scx200_wdt_release(struct inode *inode, struct file *file) |
diff --git a/drivers/watchdog/smsc37b787_wdt.c b/drivers/watchdog/smsc37b787_wdt.c index c768dcd53034..a22170775273 100644 --- a/drivers/watchdog/smsc37b787_wdt.c +++ b/drivers/watchdog/smsc37b787_wdt.c | |||
@@ -366,7 +366,7 @@ static int wb_smsc_wdt_open(struct inode *inode, struct file *file) | |||
366 | pr_info("Watchdog enabled. Timeout set to %d %s\n", | 366 | pr_info("Watchdog enabled. Timeout set to %d %s\n", |
367 | timeout, (unit == UNIT_SECOND) ? "second(s)" : "minute(s)"); | 367 | timeout, (unit == UNIT_SECOND) ? "second(s)" : "minute(s)"); |
368 | 368 | ||
369 | return nonseekable_open(inode, file); | 369 | return stream_open(inode, file); |
370 | } | 370 | } |
371 | 371 | ||
372 | /* close => shut off the timer */ | 372 | /* close => shut off the timer */ |
diff --git a/drivers/watchdog/w83877f_wdt.c b/drivers/watchdog/w83877f_wdt.c index db9b6488e388..8dd953f90680 100644 --- a/drivers/watchdog/w83877f_wdt.c +++ b/drivers/watchdog/w83877f_wdt.c | |||
@@ -224,7 +224,7 @@ static int fop_open(struct inode *inode, struct file *file) | |||
224 | 224 | ||
225 | /* Good, fire up the show */ | 225 | /* Good, fire up the show */ |
226 | wdt_startup(); | 226 | wdt_startup(); |
227 | return nonseekable_open(inode, file); | 227 | return stream_open(inode, file); |
228 | } | 228 | } |
229 | 229 | ||
230 | static int fop_close(struct inode *inode, struct file *file) | 230 | static int fop_close(struct inode *inode, struct file *file) |
diff --git a/drivers/watchdog/w83977f_wdt.c b/drivers/watchdog/w83977f_wdt.c index 672b61a7f9a3..184324c1edae 100644 --- a/drivers/watchdog/w83977f_wdt.c +++ b/drivers/watchdog/w83977f_wdt.c | |||
@@ -298,7 +298,7 @@ static int wdt_open(struct inode *inode, struct file *file) | |||
298 | __module_get(THIS_MODULE); | 298 | __module_get(THIS_MODULE); |
299 | 299 | ||
300 | wdt_start(); | 300 | wdt_start(); |
301 | return nonseekable_open(inode, file); | 301 | return stream_open(inode, file); |
302 | } | 302 | } |
303 | 303 | ||
304 | static int wdt_release(struct inode *inode, struct file *file) | 304 | static int wdt_release(struct inode *inode, struct file *file) |
diff --git a/drivers/watchdog/wafer5823wdt.c b/drivers/watchdog/wafer5823wdt.c index 93c5b610e264..0a8073b419f8 100644 --- a/drivers/watchdog/wafer5823wdt.c +++ b/drivers/watchdog/wafer5823wdt.c | |||
@@ -197,7 +197,7 @@ static int wafwdt_open(struct inode *inode, struct file *file) | |||
197 | * Activate | 197 | * Activate |
198 | */ | 198 | */ |
199 | wafwdt_start(); | 199 | wafwdt_start(); |
200 | return nonseekable_open(inode, file); | 200 | return stream_open(inode, file); |
201 | } | 201 | } |
202 | 202 | ||
203 | static int wafwdt_close(struct inode *inode, struct file *file) | 203 | static int wafwdt_close(struct inode *inode, struct file *file) |
diff --git a/drivers/watchdog/watchdog_dev.c b/drivers/watchdog/watchdog_dev.c index f6c24b22b37c..252a7c7b6592 100644 --- a/drivers/watchdog/watchdog_dev.c +++ b/drivers/watchdog/watchdog_dev.c | |||
@@ -825,7 +825,7 @@ static int watchdog_open(struct inode *inode, struct file *file) | |||
825 | kref_get(&wd_data->kref); | 825 | kref_get(&wd_data->kref); |
826 | 826 | ||
827 | /* dev/watchdog is a virtual (and thus non-seekable) filesystem */ | 827 | /* dev/watchdog is a virtual (and thus non-seekable) filesystem */ |
828 | return nonseekable_open(inode, file); | 828 | return stream_open(inode, file); |
829 | 829 | ||
830 | out_mod: | 830 | out_mod: |
831 | module_put(wd_data->wdd->ops->owner); | 831 | module_put(wd_data->wdd->ops->owner); |
diff --git a/drivers/watchdog/wdrtas.c b/drivers/watchdog/wdrtas.c index 0240c60d14e3..3c3ed512ce1e 100644 --- a/drivers/watchdog/wdrtas.c +++ b/drivers/watchdog/wdrtas.c | |||
@@ -376,7 +376,7 @@ static int wdrtas_open(struct inode *inode, struct file *file) | |||
376 | wdrtas_timer_start(); | 376 | wdrtas_timer_start(); |
377 | wdrtas_timer_keepalive(); | 377 | wdrtas_timer_keepalive(); |
378 | 378 | ||
379 | return nonseekable_open(inode, file); | 379 | return stream_open(inode, file); |
380 | } | 380 | } |
381 | 381 | ||
382 | /** | 382 | /** |
@@ -442,7 +442,7 @@ static ssize_t wdrtas_temp_read(struct file *file, char __user *buf, | |||
442 | */ | 442 | */ |
443 | static int wdrtas_temp_open(struct inode *inode, struct file *file) | 443 | static int wdrtas_temp_open(struct inode *inode, struct file *file) |
444 | { | 444 | { |
445 | return nonseekable_open(inode, file); | 445 | return stream_open(inode, file); |
446 | } | 446 | } |
447 | 447 | ||
448 | /** | 448 | /** |
diff --git a/drivers/watchdog/wdt.c b/drivers/watchdog/wdt.c index e481fbbc4ae7..3d2f5ed60e88 100644 --- a/drivers/watchdog/wdt.c +++ b/drivers/watchdog/wdt.c | |||
@@ -421,7 +421,7 @@ static int wdt_open(struct inode *inode, struct file *file) | |||
421 | * Activate | 421 | * Activate |
422 | */ | 422 | */ |
423 | wdt_start(); | 423 | wdt_start(); |
424 | return nonseekable_open(inode, file); | 424 | return stream_open(inode, file); |
425 | } | 425 | } |
426 | 426 | ||
427 | /** | 427 | /** |
@@ -481,7 +481,7 @@ static ssize_t wdt_temp_read(struct file *file, char __user *buf, | |||
481 | 481 | ||
482 | static int wdt_temp_open(struct inode *inode, struct file *file) | 482 | static int wdt_temp_open(struct inode *inode, struct file *file) |
483 | { | 483 | { |
484 | return nonseekable_open(inode, file); | 484 | return stream_open(inode, file); |
485 | } | 485 | } |
486 | 486 | ||
487 | /** | 487 | /** |
diff --git a/drivers/watchdog/wdt285.c b/drivers/watchdog/wdt285.c index ebbb183be618..68843e7f224d 100644 --- a/drivers/watchdog/wdt285.c +++ b/drivers/watchdog/wdt285.c | |||
@@ -101,7 +101,7 @@ static int watchdog_open(struct inode *inode, struct file *file) | |||
101 | 101 | ||
102 | ret = 0; | 102 | ret = 0; |
103 | #endif | 103 | #endif |
104 | nonseekable_open(inode, file); | 104 | stream_open(inode, file); |
105 | return ret; | 105 | return ret; |
106 | } | 106 | } |
107 | 107 | ||
diff --git a/drivers/watchdog/wdt977.c b/drivers/watchdog/wdt977.c index a8e6f87f60c9..59ed644dd4a9 100644 --- a/drivers/watchdog/wdt977.c +++ b/drivers/watchdog/wdt977.c | |||
@@ -273,7 +273,7 @@ static int wdt977_open(struct inode *inode, struct file *file) | |||
273 | __module_get(THIS_MODULE); | 273 | __module_get(THIS_MODULE); |
274 | 274 | ||
275 | wdt977_start(); | 275 | wdt977_start(); |
276 | return nonseekable_open(inode, file); | 276 | return stream_open(inode, file); |
277 | } | 277 | } |
278 | 278 | ||
279 | static int wdt977_release(struct inode *inode, struct file *file) | 279 | static int wdt977_release(struct inode *inode, struct file *file) |
diff --git a/drivers/watchdog/wdt_pci.c b/drivers/watchdog/wdt_pci.c index 10e2cda0ee5a..ff3a41f47127 100644 --- a/drivers/watchdog/wdt_pci.c +++ b/drivers/watchdog/wdt_pci.c | |||
@@ -461,7 +461,7 @@ static int wdtpci_open(struct inode *inode, struct file *file) | |||
461 | * Activate | 461 | * Activate |
462 | */ | 462 | */ |
463 | wdtpci_start(); | 463 | wdtpci_start(); |
464 | return nonseekable_open(inode, file); | 464 | return stream_open(inode, file); |
465 | } | 465 | } |
466 | 466 | ||
467 | /** | 467 | /** |
@@ -524,7 +524,7 @@ static ssize_t wdtpci_temp_read(struct file *file, char __user *buf, | |||
524 | 524 | ||
525 | static int wdtpci_temp_open(struct inode *inode, struct file *file) | 525 | static int wdtpci_temp_open(struct inode *inode, struct file *file) |
526 | { | 526 | { |
527 | return nonseekable_open(inode, file); | 527 | return stream_open(inode, file); |
528 | } | 528 | } |
529 | 529 | ||
530 | /** | 530 | /** |