|
@@ -195,7 +195,7 @@ static int c_can_plat_probe(struct platform_device *pdev)
|
|
|
|
|
|
res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
|
|
|
priv->raminit_ctrlreg = devm_ioremap_resource(&pdev->dev, res);
|
|
|
- if (IS_ERR(priv->raminit_ctrlreg) || priv->instance < 0)
|
|
|
+ if (IS_ERR(priv->raminit_ctrlreg) || (int)priv->instance < 0)
|
|
|
dev_info(&pdev->dev, "control memory is not used for raminit\n");
|
|
|
else
|
|
|
priv->raminit = c_can_hw_raminit;
|