Repository navigation
Commit 490c210
hwmon: rp1-adc: allow the driver to bind again after removal
The driver is registered with module_platform_driver_probe(), so its
probe function is discarded after boot and later devices fail to
probe. When the RP1 device is unbound and bound again, the ADC device
is recreated but never gets a driver, and the RP1 sensors stay missing
until the next reboot.
Register the driver with module_platform_driver() and drop __init from
the probe function.
Signed-off-by: Joshua Covington <joshuacov@gmail.com>1 parent c8c4867 commit 490c210
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | | - | |
| 225 | + | |
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
| |||
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
| 290 | + | |
290 | 291 | | |
291 | 292 | | |
292 | 293 | | |
293 | 294 | | |
294 | 295 | | |
295 | 296 | | |
296 | | - | |
| 297 | + | |
297 | 298 | | |
298 | 299 | | |
299 | 300 | | |
| |||
0 commit comments