MLK-15999 imx: mlb: fix build warnings
fix build warnings Signed-off-by: Gao Pan <pandy.gao@nxp.com> Signed-off-by: Vipul Kumar <vipul_kumar@mentor.com>5.4-rM2-2.2.x-imx-squashed
parent
a7aaf46bb9
commit
9cfdf9587a
|
@ -2325,9 +2325,8 @@ static ssize_t mxc_mlb150_read(struct file *filp, char __user *buf,
|
|||
size = pdevinfo->adt_buf_dep;
|
||||
if (size > count) {
|
||||
/* the user buffer is too small */
|
||||
pr_warning
|
||||
("mxc_mlb150: received data size is bigger than "
|
||||
"size: %d, count: %d\n", size, count);
|
||||
pr_warn("mxc_mlb150: received data size is biggerthan size:"
|
||||
"%d, count: %d\n", size, (int)count);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
@ -2642,7 +2641,6 @@ static int mxc_mlb150_probe(struct platform_device *pdev)
|
|||
goto err_dev;
|
||||
}
|
||||
mlb_base = devm_ioremap_resource(&pdev->dev, res);
|
||||
dev_dbg(&pdev->dev, "mapped base address: 0x%08x\n", (u32)mlb_base);
|
||||
if (IS_ERR(mlb_base)) {
|
||||
dev_err(&pdev->dev,
|
||||
"failed to get ioremap base\n");
|
||||
|
|
Loading…
Reference in New Issue