X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=drivers%2Fregulator%2Fcore.c;h=6b9edb525d741417ea695df053974072d3557de5;hb=96dc589624954fea915c1cee90e0987ff9631386;hp=443eaab933fcfe680d5e402f72bbe7c55c3ae391;hpb=41d5e08ea86af3359239d5a6f7021cdc61beaa49;p=uclinux-h8%2Flinux.git diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index 443eaab933fc..6b9edb525d74 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c @@ -779,7 +779,7 @@ static int suspend_prepare(struct regulator_dev *rdev, suspend_state_t state) static void print_constraints(struct regulator_dev *rdev) { struct regulation_constraints *constraints = rdev->constraints; - char buf[80] = ""; + char buf[160] = ""; int count = 0; int ret; @@ -801,7 +801,7 @@ static void print_constraints(struct regulator_dev *rdev) } if (constraints->uV_offset) - count += sprintf(buf, "%dmV offset ", + count += sprintf(buf + count, "%dmV offset ", constraints->uV_offset / 1000); if (constraints->min_uA && constraints->max_uA) { @@ -1192,10 +1192,10 @@ static struct regulator *create_regulator(struct regulator_dev *rdev, if (regulator->supply_name == NULL) goto overflow_err; - err = sysfs_create_link(&rdev->dev.kobj, &dev->kobj, + err = sysfs_create_link_nowarn(&rdev->dev.kobj, &dev->kobj, buf); if (err) { - rdev_warn(rdev, "could not add device link %s err %d\n", + rdev_dbg(rdev, "could not add device link %s err %d\n", dev->kobj.name, err); /* non-fatal */ }