summaryrefslogtreecommitdiff
path: root/drivers/hwtracing/intel_th/pti.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwtracing/intel_th/pti.c')
-rw-r--r--drivers/hwtracing/intel_th/pti.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hwtracing/intel_th/pti.c b/drivers/hwtracing/intel_th/pti.c
index 1e3bbc8..57cbfdc 100644
--- a/drivers/hwtracing/intel_th/pti.c
+++ b/drivers/hwtracing/intel_th/pti.c
@@ -207,8 +207,8 @@ static int intel_th_pti_probe(struct intel_th_device *thdev)
return -ENODEV;
base = devm_ioremap(dev, res->start, resource_size(res));
- if (IS_ERR(base))
- return PTR_ERR(base);
+ if (!base)
+ return -ENOMEM;
pti = devm_kzalloc(dev, sizeof(*pti), GFP_KERNEL);
if (!pti)