mirror of
https://github.com/torvalds/linux.git
synced 2024-12-21 02:21:36 +00:00
ARM: omap2: gpmc-onenand: Replace printk KERN_ERR with dev_warn()
Since the condition is not an error but a warning, replace printk KERN_ERR with dev_warn. Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com> Reviewed-by: Jon Hunter <jon-hunter@ti.com> Signed-off-by: Jon Hunter <jon-hunter@ti.com>
This commit is contained in:
parent
df25cb4645
commit
7ab91596a5
@ -367,7 +367,7 @@ void gpmc_onenand_init(struct omap_onenand_platform_data *_onenand_data)
|
|||||||
|
|
||||||
if (cpu_is_omap24xx() &&
|
if (cpu_is_omap24xx() &&
|
||||||
(gpmc_onenand_data->flags & ONENAND_SYNC_READWRITE)) {
|
(gpmc_onenand_data->flags & ONENAND_SYNC_READWRITE)) {
|
||||||
printk(KERN_ERR "Onenand using only SYNC_READ on 24xx\n");
|
dev_warn(dev, "OneNAND using only SYNC_READ on 24xx\n");
|
||||||
gpmc_onenand_data->flags &= ~ONENAND_SYNC_READWRITE;
|
gpmc_onenand_data->flags &= ~ONENAND_SYNC_READWRITE;
|
||||||
gpmc_onenand_data->flags |= ONENAND_SYNC_READ;
|
gpmc_onenand_data->flags |= ONENAND_SYNC_READ;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user