summaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2015-06-26 08:56:50 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2015-06-26 09:21:37 +0200
commitc54fb2ecbdee1a2cbf32340f6ca21ae4c747c4bc (patch)
tree77ed79954f6ba7fd470c3e64e2a4bcae5c18d7e1 /drivers/mtd
parent542a81fff39880cfd2abb0837975310c9cefa59d (diff)
downloadbarebox-c54fb2ecbdee1a2cbf32340f6ca21ae4c747c4bc.tar.gz
barebox-c54fb2ecbdee1a2cbf32340f6ca21ae4c747c4bc.tar.xz
ubi: Lower 'already attached' message to debug level
The caller will show a message, no need to do this in UBI. This is for the case when mtd_detect calls ubi_attach_mtd_dev. mtd_detect does not know whether this is already attached and it's not an error. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/ubi/build.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c
index 1074feb4b8..797022636d 100644
--- a/drivers/mtd/ubi/build.c
+++ b/drivers/mtd/ubi/build.c
@@ -518,7 +518,7 @@ int ubi_attach_mtd_dev(struct mtd_info *mtd, int ubi_num,
for (i = 0; i < UBI_MAX_DEVICES; i++) {
ubi = ubi_devices[i];
if (ubi && mtd == ubi->mtd) {
- ubi_err("mtd%d is already attached to ubi%d",
+ ubi_debug("mtd%d is already attached to ubi%d",
mtd->index, i);
return -EEXIST;
}