X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=drivers%2Fhwtracing%2Fintel_th%2Fpti.c;h=57cbfdcc7ef011381143cf534ceb9ed20a3bd030;hb=75021d28594d9b6fb4d05bbc41f77948a0db0e02;hp=1e3bbc89825c862425cafb1219f82327a894efde;hpb=4970c0cb6aa8996e39b1626887f5fb67a49f5ad1;p=firefly-linux-kernel-4.4.55.git diff --git a/drivers/hwtracing/intel_th/pti.c b/drivers/hwtracing/intel_th/pti.c index 1e3bbc89825c..57cbfdcc7ef0 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)