]> www.infradead.org Git - users/willy/xarray.git/commit
Coresight: Fix a NULL vs IS_ERR() bug in probe
authorDan Carpenter <dan.carpenter@linaro.org>
Fri, 14 Mar 2025 10:55:10 +0000 (13:55 +0300)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Fri, 14 Mar 2025 12:43:53 +0000 (12:43 +0000)
commit5442d22da7dbff3ba8c6720fc6f23ea4934d402d
treec99bb42ee42e053f9da855370e659bef19214bb6
parentb5060c17f9dc13ee740ae940733ec03fdc9847f9
Coresight: Fix a NULL vs IS_ERR() bug in probe

The devm_platform_get_and_ioremap_resource() function doesn't
return NULL, it returns error pointers.  Update the checking to
match.

Fixes: f78d206f3d73 ("Coresight: Add Coresight TMC Control Unit driver")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/dab039b9-d58a-41be-92f0-ff209cfabfe2@stanley.mountain
drivers/hwtracing/coresight/coresight-ctcu-core.c