Commit 6e5cbf4
committed
ACPI: PAD: Rearrange notify handler installation and removal
Use acpi_dev_install_notify_handler() and acpi_dev_remove_notify_handler()
for installing and removing the ACPI notify handler, respectively, which
allows acpi_pad_notify() and acpi_pad_remove() to be simplified quite a
bit.
No intentional functional impact.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://patch.msgid.link/2011993.taCxCBeP46@rafael.j.wysocki1 parent 6a0c7d3 commit 6e5cbf4
1 file changed
Lines changed: 5 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
407 | 407 | | |
408 | 408 | | |
409 | 409 | | |
410 | | - | |
411 | | - | |
| 410 | + | |
412 | 411 | | |
413 | 412 | | |
414 | 413 | | |
| |||
427 | 426 | | |
428 | 427 | | |
429 | 428 | | |
430 | | - | |
431 | 429 | | |
432 | 430 | | |
433 | 431 | | |
434 | 432 | | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | | - | |
| 433 | + | |
| 434 | + | |
442 | 435 | | |
443 | 436 | | |
444 | 437 | | |
445 | 438 | | |
446 | | - | |
447 | | - | |
448 | 439 | | |
449 | 440 | | |
450 | 441 | | |
451 | 442 | | |
452 | | - | |
453 | | - | |
| 443 | + | |
| 444 | + | |
454 | 445 | | |
455 | 446 | | |
456 | 447 | | |
| |||
0 commit comments