On 11/8/2015 3:47 PM, Andy Shevchenko wrote:
+       trca_resource = platform_get_resource(pdev, IORESOURCE_MEM, 0);
>+       if (!trca_resource) {
>+               rc = -ENODEV;
>+               goto bailout;
>+       }
Why did you ignore my comment about this block?
Remove that condition entirely.

>+
>+       trca = devm_ioremap_resource(&pdev->dev, trca_resource);
>+       if (IS_ERR(trca)) {
>+               rc = -ENOMEM;
>+               goto bailout;
>+       }

Sorry, I didn't quite get your comment. I thought you wanted to see platform_get_resource and devm_ioremap_resource together.

Which one do you want me to remove?

--
Sinan Kaya
Qualcomm Technologies, Inc. on behalf of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
--
To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to