]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe: Fix a NULL vs IS_ERR() bug in xe_i2c_register_adapter()
authorDan Carpenter <dan.carpenter@linaro.org>
Tue, 15 Jul 2025 22:59:44 +0000 (17:59 -0500)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Wed, 16 Jul 2025 14:51:36 +0000 (10:51 -0400)
commit2f264d58cc805a3cefc6b98097f90fbc388136ef
treefe90ca5fb30c248a79c2e9a42b4f8a572e1beba3
parent308dc9b27874d0e8a0258869b9e681b0fdd2e579
drm/xe: Fix a NULL vs IS_ERR() bug in xe_i2c_register_adapter()

The fwnode_create_software_node() function returns error pointers.  It
never returns NULL.  Update the checks to match.

Fixes: f0e53aadd702 ("drm/xe: Support for I2C attached MCUs")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://lore.kernel.org/r/65825d00-81ab-4665-af51-4fff6786a250@sabinyo.mountain
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_i2c.c