Commit f2ec693
platform/x86: sony-laptop: Check ACPI_COMPANION() against NULL
Every platform driver can be forced to match a device that doesn't match
its list of device IDs because of device_match_driver_override(), so
platform drivers that rely on the existence of a device's ACPI companion
object need to verify its presence.
Accordingly, add requisite ACPI_COMPANION() checks against NULL to the
platform/x86 sony-laptop driver.
Fixes: 138db7e ("platform/x86: sony-laptop: Convert PIC driver to a platform one")
Fixes: 14004dd ("platform/x86: sony-laptop: Convert NC driver to a platform one")
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/1871155.VLH7GnMWUR@rafael.j.wysocki
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>1 parent f15b0a3 commit f2ec693
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3147 | 3147 | | |
3148 | 3148 | | |
3149 | 3149 | | |
3150 | | - | |
| 3150 | + | |
3151 | 3151 | | |
3152 | 3152 | | |
3153 | 3153 | | |
3154 | 3154 | | |
| 3155 | + | |
| 3156 | + | |
| 3157 | + | |
| 3158 | + | |
3155 | 3159 | | |
3156 | 3160 | | |
3157 | 3161 | | |
| |||
4509 | 4513 | | |
4510 | 4514 | | |
4511 | 4515 | | |
4512 | | - | |
4513 | 4516 | | |
4514 | 4517 | | |
| 4518 | + | |
4515 | 4519 | | |
4516 | 4520 | | |
| 4521 | + | |
| 4522 | + | |
| 4523 | + | |
| 4524 | + | |
4517 | 4525 | | |
4518 | 4526 | | |
4519 | 4527 | | |
| |||
0 commit comments