mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-21 03:55:06 +00:00
oxnas: remove some kprintf calls from NAND driver
They were added for debugging and I forgot to remove them. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
parent
8f0dc92afd
commit
870b7bee44
@ -120,7 +120,6 @@ static int oxnas_nand_probe(struct platform_device *pdev)
|
|||||||
|
|
||||||
/* Only a single chip node is supported */
|
/* Only a single chip node is supported */
|
||||||
count = of_get_child_count(np);
|
count = of_get_child_count(np);
|
||||||
pr_info("########### count: %d\n", count);
|
|
||||||
if (count > 1)
|
if (count > 1)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
@ -150,12 +149,10 @@ static int oxnas_nand_probe(struct platform_device *pdev)
|
|||||||
|
|
||||||
/* Scan to find existence of the device */
|
/* Scan to find existence of the device */
|
||||||
err = nand_scan(mtd, 1);
|
err = nand_scan(mtd, 1);
|
||||||
pr_info("########### nand_scan err: %d\n", err);
|
|
||||||
if (err)
|
if (err)
|
||||||
return err;
|
return err;
|
||||||
|
|
||||||
err = mtd_device_register(mtd, NULL, 0);
|
err = mtd_device_register(mtd, NULL, 0);
|
||||||
pr_info("########### mtd_device_register err: %d\n", err);
|
|
||||||
if (err) {
|
if (err) {
|
||||||
nand_release(mtd);
|
nand_release(mtd);
|
||||||
return err;
|
return err;
|
||||||
@ -165,8 +162,6 @@ static int oxnas_nand_probe(struct platform_device *pdev)
|
|||||||
++nchips;
|
++nchips;
|
||||||
}
|
}
|
||||||
|
|
||||||
pr_info("########### nchips: %d\n", nchips);
|
|
||||||
|
|
||||||
/* Exit if no chips found */
|
/* Exit if no chips found */
|
||||||
if (!nchips)
|
if (!nchips)
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
Loading…
Reference in New Issue
Block a user