Commit 89a82c1b authored by Sergei Poselenov's avatar Sergei Poselenov

Merge branch 'master' of ocean:/SR/git/A2F/u-boot

parents 0e7179d5 da1aa81c
......@@ -150,10 +150,11 @@ s32 stm32f2_gpio_config(const struct stm32f2_gpio_dsc *dsc,
* Check params
*/
if (!dsc || dsc->port > 8 || dsc->pin > 15) {
if (gd->have_console)
if (gd->have_console) {
printf("%s: incorrect params %d.%d.\n", __func__,
dsc ? dsc->port : -1,
dsc ? dsc->pin : -1);
}
rv = -EINVAL;
goto out;
}
......@@ -254,10 +255,11 @@ s32 stm32f2_gpout_set(const struct stm32f2_gpio_dsc *dsc, int state)
s32 rv;
if (!dsc || dsc->port > 8 || dsc->pin > 15) {
if (gd->have_console)
if (gd->have_console) {
printf("%s: incorrect params %d.%d.\n", __func__,
dsc ? dsc->port : -1,
dsc ? dsc->pin : -1);
}
rv = -EINVAL;
goto out;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment