Skip to content
Commit 4dbccb87 authored by Dan Carpenter's avatar Dan Carpenter Committed by Andy Shevchenko
Browse files

platform/x86: surface3_power: Fix a NULL vs IS_ERR() check in probe



The i2c_acpi_new_device() function never returns NULL, it returns error
pointers.

Fixes: b1f81b49 ("platform/x86: surface3_power: MSHW0011 rev-eng implementation")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
parent 8f3d9f35
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment