linux/drivers/platform/x86/x86-android-tablets
Dan Carpenter 35ddd61cf0 platform/x86: x86-android-tablets: Fix an IS_ERR() vs NULL check in probe
The spi_new_device() function returns NULL on error, it doesn't return
error pointers.

Fixes: 70505ea6de ("platform/x86: x86-android-tablets: Add support for SPI device instantiation")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/4b1b2395-c7c5-44a4-b0b0-6d091c7f46a2@moroto.mountain
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2023-12-04 15:42:15 +01:00
..
asus.c platform/x86: x86-android-tablets: Stop using gpiolib private APIs 2023-09-11 13:28:58 +02:00
core.c platform/x86: x86-android-tablets: Fix an IS_ERR() vs NULL check in probe 2023-12-04 15:42:15 +01:00
dmi.c platform/x86: x86-android-tablets: Add support for extra buttons on Cyberbook T116 2023-05-09 11:54:43 +02:00
Kconfig platform/x86: x86-android-tablets: Add depends on PMIC_OPREGION 2023-03-16 14:40:39 +01:00
lenovo.c platform/x86: x86-android-tablets: Fix backlight ctrl for Lenovo Yoga Tab 3 Pro YT3-X90F 2023-11-20 13:20:34 +01:00
Makefile platform/x86: x86-android-tablets: Move remaining tablets to other.c 2023-03-07 12:08:31 +01:00
other.c platform/x86: x86-android-tablets: Stop using gpiolib private APIs 2023-09-11 13:28:58 +02:00
shared-psy-info.c platform/x86: x86-android-tablets: Move shared power-supply fw-nodes to a separate file 2023-03-07 12:08:31 +01:00
shared-psy-info.h platform/x86: x86-android-tablets: Move shared power-supply fw-nodes to a separate file 2023-03-07 12:08:31 +01:00
x86-android-tablets.h platform/x86: x86-android-tablets: Add support for SPI device instantiation 2023-11-20 13:20:34 +01:00