[media] Staging/media: Use dev_ printks in solo6x10/p2m.c
fixed below checkpatch warning. - WARNING: Prefer netdev_warn(netdev, ... then dev_warn(dev, ... then pr_warn(... to printk(KERN_WARNING ... Signed-off-by: YAMANE Toshiaki <yamanetoshi@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
5820debccb
commit
e6da76617f
|
@ -231,15 +231,15 @@ static void run_p2m_test(struct solo_dev *solo_dev)
|
||||||
u32 size = SOLO_JPEG_EXT_ADDR(solo_dev) + SOLO_JPEG_EXT_SIZE(solo_dev);
|
u32 size = SOLO_JPEG_EXT_ADDR(solo_dev) + SOLO_JPEG_EXT_SIZE(solo_dev);
|
||||||
int i, d;
|
int i, d;
|
||||||
|
|
||||||
printk(KERN_WARNING "%s: Testing %u bytes of external ram\n",
|
dev_warn(&solo_dev->pdev->dev, "Testing %u bytes of external ram\n",
|
||||||
SOLO6X10_NAME, size);
|
size);
|
||||||
|
|
||||||
for (i = 0; i < size; i += TEST_CHUNK_SIZE)
|
for (i = 0; i < size; i += TEST_CHUNK_SIZE)
|
||||||
for (d = 0; d < 4; d++)
|
for (d = 0; d < 4; d++)
|
||||||
errs += p2m_test(solo_dev, d, i, TEST_CHUNK_SIZE);
|
errs += p2m_test(solo_dev, d, i, TEST_CHUNK_SIZE);
|
||||||
|
|
||||||
printk(KERN_WARNING "%s: Found %llu errors during p2m test\n",
|
dev_warn(&solo_dev->pdev->dev, "Found %llu errors during p2m test\n",
|
||||||
SOLO6X10_NAME, errs);
|
errs);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue