platform/x86: Check ACPI_COMPANION() against NULL during probe
Subsystems (13)
Rafael J. Wysocki
maintainerv2 cover platform/x86: Check ACPI_COMPANION() against NULL during probe
Hi All,
This series replaces
https://lore.kernel.org/linux-acpi/[email protected]/
and, as a whole, it makes exactly the same code changes.
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, requisite ACPI_COMPANION() or ACPI_HANDLE() checks against NULL are added to multiple platform/x86 drivers that have been converted to platform drivers from ACPI drivers recently.
Thanks!
Rafael J. Wysocki
maintainerPATCH v2 1/16 platform/x86: acer-wireless: Check ACPI_COMPANION() against NULL
From: "Rafael J. Wysocki" <[email protected]>
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 a requisite ACPI_COMPANION() check against NULL to the platform/x86 acer-wireless driver.
--- drivers/platform/x86/acer-wireless.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
drivers/platform/x86/acer-wireless.c +6 -2
@@ -37,9 +37,14 @@ static void acer_wireless_notify(acpi_handle handle, u32 event, void *data)static int acer_wireless_probe (struct platform_device *pdev) { +struct acpi_device *adev;struct input_dev *idev;int ret; + adev =ACPI_COMPANION (&pdev->dev); +if (!adev) +return -ENODEV ; + idev =devm_input_allocate_device (&pdev->dev);if (!idev)return -ENOMEM ;
@@ -57,8 +62,7 @@ static int acer_wireless_probe(struct platform_device *pdev)if (ret)return ret; -return acpi_dev_install_notify_handler (ACPI_COMPANION (&pdev->dev), -ACPI_DEVICE_NOTIFY , +return acpi_dev_install_notify_handler (adev,ACPI_DEVICE_NOTIFY , acer_wireless_notify, &pdev->dev); }
Signature · 1 line
2.51.0
Rafael J. Wysocki
maintainerPATCH v2 2/16 platform/x86: asus-laptop: Check ACPI_COMPANION() against NULL
In reply to Rafael J. WysockiFrom: "Rafael J. Wysocki" <[email protected]>
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 a requisite ACPI_COMPANION() check against NULL to the platform/x86 asus-laptop driver.
--- drivers/platform/x86/asus-laptop.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/platform/x86/asus-laptop.c +5 -1
@@ -1826,10 +1826,14 @@ static bool asus_device_present;static int asus_acpi_probe (struct platform_device *pdev) { -struct acpi_device *device =ACPI_COMPANION (&pdev->dev); +struct acpi_device *device;struct asus_laptop *asus;int result; + device =ACPI_COMPANION (&pdev->dev); +if (!device) +return -ENODEV ; +pr_notice ("Asus Laptop Support version %s\n" ,ASUS_LAPTOP_VERSION ); asus = kzalloc_obj(struct asus_laptop);
Signature · 1 line
2.51.0
Rafael J. Wysocki
maintainerPATCH v2 3/16 platform/x86: dell/dell-rbtn: Check ACPI_COMPANION() against NULL
In reply to Rafael J. WysockiFrom: "Rafael J. Wysocki" <[email protected]>
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 a requisite ACPI_COMPANION() check against NULL to the platform/x86 dell-rbtn driver.
--- drivers/platform/x86/dell/dell-rbtn.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/platform/x86/dell/dell-rbtn.c +5 -1
@@ -396,11 +396,15 @@ static void rbtn_cleanup(struct device *dev)static int rbtn_probe (struct platform_device *pdev) { -struct acpi_device *device =ACPI_COMPANION (&pdev->dev);struct rbtn_data *rbtn_data; +struct acpi_device *device;enum rbtn_type type;int ret =0 ; + device =ACPI_COMPANION (&pdev->dev); +if (!device) +return -ENODEV ; + type =rbtn_check (device);if (type ==RBTN_UNKNOWN ) {dev_info (&pdev->dev,"Unknown device type\n" );
Signature · 1 line
2.51.0
Rafael J. Wysocki
maintainerPATCH v2 4/16 platform/x86: eeepc-laptop: Check ACPI_COMPANION() against NULL
In reply to Rafael J. WysockiFrom: "Rafael J. Wysocki" <[email protected]>
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 a requisite ACPI_COMPANION() check against NULL to the platform/x86 eeepc-laptop driver.
--- drivers/platform/x86/eeepc-laptop.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/platform/x86/eeepc-laptop.c +5 -1
@@ -1363,10 +1363,14 @@ static bool eeepc_device_present;static int eeepc_acpi_probe (struct platform_device *pdev) { -struct acpi_device *device =ACPI_COMPANION (&pdev->dev); +struct acpi_device *device;struct eeepc_laptop *eeepc;int result; + device =ACPI_COMPANION (&pdev->dev); +if (!device) +return -ENODEV ; +pr_notice (EEEPC_LAPTOP_NAME "\n" ); eeepc = kzalloc_obj(struct eeepc_laptop);if (!eeepc)
Signature · 1 line
2.51.0
Rafael J. Wysocki
maintainerPATCH v2 5/16 platform/x86: fujitsu: Check ACPI_COMPANION() against NULL
In reply to Rafael J. WysockiFrom: "Rafael J. Wysocki" <[email protected]>
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 fujitsu-laptop driver.
--- drivers/platform/x86/fujitsu-laptop.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-)
drivers/platform/x86/fujitsu-laptop.c +10 -2
@@ -530,10 +530,14 @@ static void acpi_fujitsu_bl_notify(acpi_handle handle, u32 event, void *data)static int acpi_fujitsu_bl_probe (struct platform_device *pdev) { -struct acpi_device *device =ACPI_COMPANION (&pdev->dev); +struct acpi_device *device;struct fujitsu_bl *priv;int ret; + device =ACPI_COMPANION (&pdev->dev); +if (!device) +return -ENODEV ; +if (acpi_video_get_backlight_type () != acpi_backlight_vendor)return -ENODEV ;
@@ -993,10 +997,14 @@ static void acpi_fujitsu_laptop_notify(acpi_handle handle, u32 event, void *datastatic int acpi_fujitsu_laptop_probe (struct platform_device *pdev) { -struct acpi_device *device =ACPI_COMPANION (&pdev->dev);struct fujitsu_laptop *priv; +struct acpi_device *device;int ret, i =0 ; + device =ACPI_COMPANION (&pdev->dev); +if (!device) +return -ENODEV ; + priv =devm_kzalloc (&pdev->dev,sizeof (*priv),GFP_KERNEL );if (!priv)return -ENOMEM ;
Signature · 1 line
2.51.0
Rafael J. Wysocki
maintainerPATCH v2 6/16 platform/x86: fujitsu-tablet: Check ACPI_COMPANION() against NULL
In reply to Rafael J. WysockiFrom: "Rafael J. Wysocki" <[email protected]>
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 fujitsu-tablet driver.
--- drivers/platform/x86/fujitsu-tablet.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/platform/x86/fujitsu-tablet.c +5 -1
@@ -445,10 +445,14 @@ static acpi_status fujitsu_walk_resources(struct acpi_resource *res, void *data)static int acpi_fujitsu_probe (struct platform_device *pdev) { -struct acpi_device *adev =ACPI_COMPANION (&pdev->dev); +struct acpi_device *adev;acpi_status status;int error; + adev =ACPI_COMPANION (&pdev->dev); +if (!adev) +return -ENODEV ; + status =acpi_walk_resources (adev->handle,METHOD_NAME__CRS , fujitsu_walk_resources,NULL );if (ACPI_FAILURE (status) || !fujitsu.irq || !fujitsu.io_base)
Signature · 1 line
2.51.0
Rafael J. Wysocki
maintainerPATCH v2 7/16 platform/x86: intel/rst: Check ACPI_COMPANION() against NULL
In reply to Rafael J. WysockiFrom: "Rafael J. Wysocki" <[email protected]>
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 a requisite ACPI_COMPANION() check against NULL to the platform/x86 intel/rst driver.
--- drivers/platform/x86/intel/rst.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/platform/x86/intel/rst.c +5 -1
@@ -102,9 +102,13 @@ static struct device_attribute irst_timeout_attr = {static int irst_probe (struct platform_device *pdev) { -struct acpi_device *acpi =ACPI_COMPANION (&pdev->dev); +struct acpi_device *acpi;int error; + acpi =ACPI_COMPANION (&pdev->dev); +if (!acpi) +return -ENODEV ; + error =device_create_file (&acpi->dev, &irst_timeout_attr);if (unlikely (error))return error;
Signature · 1 line
2.51.0
Rafael J. Wysocki
maintainerPATCH v2 8/16 platform/x86: intel/smartconnect: Check ACPI_HANDLE() against NULL
In reply to Rafael J. WysockiFrom: "Rafael J. Wysocki" <[email protected]>
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 a requisite ACPI_HANDLE() check against NULL to the platform/x86 intel/smartconnect driver.
--- drivers/platform/x86/intel/smartconnect.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/platform/x86/intel/smartconnect.c +5 -1
@@ -12,10 +12,14 @@ MODULE_LICENSE("GPL");static int smartconnect_acpi_probe (struct platform_device *pdev) { -acpi_handle handle =ACPI_HANDLE (&pdev->dev);unsigned long long value; +acpi_handle handle;acpi_status status; + handle =ACPI_HANDLE (&pdev->dev); +if (!handle) +return -ENODEV ; + status =acpi_evaluate_integer (handle,"GAOS" ,NULL , &value);if (ACPI_FAILURE (status))return -EINVAL ;
Signature · 1 line
2.51.0
Rafael J. Wysocki
maintainerPATCH v2 9/16 platform/x86: lg-laptop: Check ACPI_COMPANION() against NULL
In reply to Rafael J. WysockiFrom: "Rafael J. Wysocki" <[email protected]>
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 a requisite ACPI_COMPANION() check against NULL to the platform/x86 lg-laptop driver.
--- drivers/platform/x86/lg-laptop.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
drivers/platform/x86/lg-laptop.c +7 -2
@@ -761,12 +761,11 @@ static void lg_laptop_remove_address_space_handler(void *data)static int acpi_probe (struct platform_device *pdev) { -struct acpi_device *device =ACPI_COMPANION (&pdev->dev);struct platform_device_info pdev_info = { - .fwnode =acpi_fwnode_handle (device), .name =PLATFORM_NAME , .id =PLATFORM_DEVID_NONE , }; +struct acpi_device *device;acpi_status status;int ret;const char *product;
@@ -775,6 +774,12 @@ static int acpi_probe(struct platform_device *pdev)if (pf_device)return 0 ; + device =ACPI_COMPANION (&pdev->dev); +if (!device) +return -ENODEV ; + + pdev_info.fwnode =acpi_fwnode_handle (device), + status =acpi_install_address_space_handler (device->handle,LG_ADDRESS_SPACE_ID , &lg_laptop_address_space_handler,NULL , &pdev->dev);
Signature · 1 line
2.51.0
Rafael J. Wysocki
maintainerPATCH v2 10/16 platform/x86: panasonic-laptop: Check ACPI_COMPANION() against NULL
In reply to Rafael J. WysockiFrom: "Rafael J. Wysocki" <[email protected]>
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 a requisite ACPI_COMPANION() check against NULL to the platform/x86 panasonic-laptop driver.
--- drivers/platform/x86/panasonic-laptop.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/platform/x86/panasonic-laptop.c +5 -1
@@ -981,11 +981,15 @@ static int acpi_pcc_hotkey_resume(struct device *dev)static int acpi_pcc_hotkey_probe (struct platform_device *pdev) { -struct acpi_device *device =ACPI_COMPANION (&pdev->dev);struct backlight_properties props; +struct acpi_device *device;struct pcc_acpi *pcc;int num_sifr, result; + device =ACPI_COMPANION (&pdev->dev); +if (!device) +return -ENODEV ; + num_sifr =acpi_pcc_get_sqty (device);/*
Signature · 1 line
2.51.0
Rafael J. Wysocki
maintainerPATCH v2 11/16 platform/x86: sony-laptop: Check ACPI_COMPANION() against NULL
In reply to Rafael J. WysockiFrom: "Rafael J. Wysocki" <[email protected]>
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.
--- drivers/platform/x86/sony-laptop.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-)
drivers/platform/x86/sony-laptop.c +10 -2
@@ -3147,11 +3147,15 @@ static void sony_nc_backlight_cleanup(void)static int sony_nc_probe (struct platform_device *pdev) { -struct acpi_device *device =ACPI_COMPANION (&pdev->dev); +struct acpi_device *device;acpi_status status;int result =0 ;struct sony_nc_value *item; + device =ACPI_COMPANION (&pdev->dev); +if (!device) +return -ENODEV ; + sony_nc_acpi_device = device;strscpy (acpi_device_class (device),"sony/hotkey" );
@@ -4509,11 +4513,15 @@ static void sony_pic_remove(struct platform_device *pdev)static int sony_pic_probe (struct platform_device *pdev) { -struct acpi_device *device =ACPI_COMPANION (&pdev->dev);struct sony_pic_ioport *io, *tmp_io;struct sony_pic_irq *irq, *tmp_irq; +struct acpi_device *device;int result; + device =ACPI_COMPANION (&pdev->dev); +if (!device) +return -ENODEV ; + spic_dev.acpi_dev = device;strscpy (acpi_device_class (device),"sony/hotkey" );sony_pic_detect_device_type (&spic_dev);
Signature · 1 line
2.51.0
Rafael J. Wysocki
maintainerPATCH v2 12/16 platform/x86: system76: Check ACPI_COMPANION() against NULL
In reply to Rafael J. WysockiFrom: "Rafael J. Wysocki" <[email protected]>
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 a requisite ACPI_COMPANION() check against NULL to the platform/x86 system76 driver.
--- drivers/platform/x86/system76_acpi.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/platform/x86/system76_acpi.c +5 -1
@@ -674,10 +674,14 @@ static void system76_notify(acpi_handle handle, u32 event, void *context)// Probe a System76 platform device static int system76_probe (struct platform_device *pdev) { -struct acpi_device *acpi_dev =ACPI_COMPANION (&pdev->dev); +struct acpi_device *acpi_dev;struct system76_data *data;int err; + acpi_dev =ACPI_COMPANION (&pdev->dev); +if (!acpi_dev) +return -ENODEV ; + data =devm_kzalloc (&pdev->dev,sizeof (*data),GFP_KERNEL );if (!data)return -ENOMEM ;
Signature · 1 line
2.51.0
Rafael J. Wysocki
maintainerPATCH v2 13/16 platform/x86: toshiba_acpi: Check ACPI_COMPANION() against NULL
In reply to Rafael J. WysockiFrom: "Rafael J. Wysocki" <[email protected]>
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 a requisite ACPI_COMPANION() check against NULL to the platform/x86 toshiba_acpi driver.
--- drivers/platform/x86/toshiba_acpi.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/platform/x86/toshiba_acpi.c +5 -1
@@ -3374,7 +3374,7 @@ static const struct dmi_system_id toshiba_dmi_quirks[] __initconst = {static int toshiba_acpi_probe (struct platform_device *pdev) { -struct acpi_device *acpi_dev =ACPI_COMPANION (&pdev->dev); +struct acpi_device *acpi_dev;struct toshiba_acpi_dev *dev;const char *hci_method;u32 dummy;
@@ -3383,6 +3383,10 @@ static int toshiba_acpi_probe(struct platform_device *pdev)if (toshiba_acpi)return -EBUSY ; + acpi_dev =ACPI_COMPANION (&pdev->dev); +if (!acpi_dev) +return -ENODEV ; +pr_info ("Toshiba Laptop ACPI Extras version %s\n" ,TOSHIBA_ACPI_VERSION );
Signature · 1 line
2.51.0
Rafael J. Wysocki
maintainerPATCH v2 14/16 platform/x86: toshiba_bluetooth: Check ACPI_COMPANION() against NULL
In reply to Rafael J. WysockiFrom: "Rafael J. Wysocki" <[email protected]>
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 a requisite ACPI_COMPANION() check against NULL to the platform/x86 toshiba_bluetooth driver.
--- drivers/platform/x86/toshiba_bluetooth.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/platform/x86/toshiba_bluetooth.c +5 -1
@@ -230,10 +230,14 @@ static int toshiba_bt_resume(struct device *dev)static int toshiba_bt_rfkill_probe (struct platform_device *pdev) { -struct acpi_device *device =ACPI_COMPANION (&pdev->dev);struct toshiba_bluetooth_dev *bt_dev; +struct acpi_device *device;int result; + device =ACPI_COMPANION (&pdev->dev); +if (!device) +return -ENODEV ; + result =toshiba_bluetooth_present (device->handle);if (result)return result;
Signature · 1 line
2.51.0
Rafael J. Wysocki
maintainerPATCH v2 15/16 platform/x86: toshiba_haps: Check ACPI_COMPANION() against NULL
In reply to Rafael J. WysockiFrom: "Rafael J. Wysocki" <[email protected]>
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 a requisite ACPI_COMPANION() check against NULL to the platform/x86 toshiba_haps driver.
--- drivers/platform/x86/toshiba_haps.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/platform/x86/toshiba_haps.c +5 -1
@@ -182,13 +182,17 @@ static int toshiba_haps_available(acpi_handle handle)static int toshiba_haps_probe (struct platform_device *pdev) { -struct acpi_device *acpi_dev =ACPI_COMPANION (&pdev->dev);struct toshiba_haps_dev *haps; +struct acpi_device *acpi_dev;int ret;if (toshiba_haps)return -EBUSY ; + acpi_dev =ACPI_COMPANION (&pdev->dev); +if (!acpi_dev) +return -ENODEV ; +if (!toshiba_haps_available (acpi_dev->handle))return -ENODEV ;
Signature · 1 line
2.51.0
Rafael J. Wysocki
maintainerPATCH v2 16/16 platform/x86: wireless-hotkey: Check ACPI_COMPANION() against NULL
In reply to Rafael J. WysockiFrom: "Rafael J. Wysocki" <[email protected]>
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 a requisite ACPI_COMPANION() check against NULL to the platform/x86 wireless-hotkey driver.
--- drivers/platform/x86/wireless-hotkey.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
drivers/platform/x86/wireless-hotkey.c +7 -2
@@ -89,9 +89,14 @@ static void wl_notify(acpi_handle handle, u32 event, void *data)static int wl_probe (struct platform_device *pdev) { +struct acpi_device *adev;struct wl_button *button;int err; + adev =ACPI_COMPANION (&pdev->dev); +if (!adev) +return -ENODEV ; + button = kzalloc_obj(struct wl_button);if (!button)return -ENOMEM ;
@@ -104,8 +109,8 @@ static int wl_probe(struct platform_device *pdev)kfree (button);return err; } - err =acpi_dev_install_notify_handler (ACPI_COMPANION (&pdev->dev), -ACPI_DEVICE_NOTIFY , wl_notify, button); + err =acpi_dev_install_notify_handler (adev,ACPI_DEVICE_NOTIFY , + wl_notify, button);if (err) {pr_err ("Failed to install ACPI notify handler\n" );wireless_input_destroy (&pdev->dev);
Signature · 1 line
2.51.0
Ilpo Järvinen
maintainerQuoted 4 lines · Rafael J. Wysocki
This series replaces
Quoted 8 lines
and, as a whole, it makes exactly the same code changes.
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.[...]
Thank you for your contribution, it has been applied to my local review-ilpo-next branch. Note it will show up in the public platform-drivers-x86/review-ilpo-next branch only once I've pushed my local branch there, which might take a while.
The list of commits applied:
[01/16] platform/x86: acer-wireless: Check ACPI_COMPANION() against NULL
commit: 227e86af748bd804813b2200b6ae73ceaacaa383
[02/16] platform/x86: asus-laptop: Check ACPI_COMPANION() against NULL
commit: 75d47068603646439930d6db1794fa363c2819da
[03/16] platform/x86: dell/dell-rbtn: Check ACPI_COMPANION() against NULL
commit: 948d2ee19da7f886a3c4f9954a42c3c77facb8e0
[04/16] platform/x86: eeepc-laptop: Check ACPI_COMPANION() against NULL
commit: a0e070895d849e2e73d56a1f95c9093c10da2741
[05/16] platform/x86: fujitsu: Check ACPI_COMPANION() against NULL
commit: 493c2f4ca878a843ae0f7efb695b0ac4bcf628eb
[06/16] platform/x86: fujitsu-tablet: Check ACPI_COMPANION() against NULL
commit: 7de479068fdcf34e64807324e794c76675776740
[07/16] platform/x86: intel/rst: Check ACPI_COMPANION() against NULL
commit: 4f47c9d8b97b6c1e2534fec7f28b6b6e5daa30b6
[08/16] platform/x86: intel/smartconnect: Check ACPI_HANDLE() against NULL
commit: c37b59d57cb373e70156bbe1978cea9846d2f0ec
[09/16] platform/x86: lg-laptop: Check ACPI_COMPANION() against NULL
commit: fea5ef6f3265e6a0202f8b27e4a648c800e3b9a9
[10/16] platform/x86: panasonic-laptop: Check ACPI_COMPANION() against NULL
commit: 2c49165dc1a4e9187dc39599ae286518feac99be
[11/16] platform/x86: sony-laptop: Check ACPI_COMPANION() against NULL
commit: 93ecc19cbb7830d0f9d33756f4c19414f61622d2
[12/16] platform/x86: system76: Check ACPI_COMPANION() against NULL
commit: 3dceea280d76c674bd36f1928115ba4e8f6b7a5e
[13/16] platform/x86: toshiba_acpi: Check ACPI_COMPANION() against NULL
commit: 9742234cb913394746b45279ec0c25f906d0924b
[14/16] platform/x86: toshiba_bluetooth: Check ACPI_COMPANION() against NULL
commit: aab866f5d75e4720d3a4ef7dac1d3ab84432205c
[15/16] platform/x86: toshiba_haps: Check ACPI_COMPANION() against NULL
commit: 74fc85c475f3886bd4804d92f372be73e7dfac98
[16/16] platform/x86: wireless-hotkey: Check ACPI_COMPANION() against NULL
commit: ad893c008d568dccf89e3bcaadfc4dd3797183c7--
i.