projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rockchip: rk3288: use default value for SYS_MALLOC_F_LEN
[oweals/u-boot.git]
/
arch
/
arm
/
mach-tegra
/
xusb-padctl-common.c
diff --git
a/arch/arm/mach-tegra/xusb-padctl-common.c
b/arch/arm/mach-tegra/xusb-padctl-common.c
index abc18c03a5ebb65e7f1fedf028d9c0f58fb5a994..c3fb30e24d1d4f6062af208cc4da2cd98457416a 100644
(file)
--- a/
arch/arm/mach-tegra/xusb-padctl-common.c
+++ b/
arch/arm/mach-tegra/xusb-padctl-common.c
@@
-1,7
+1,6
@@
+// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (c) 2014-2015, NVIDIA CORPORATION. All rights reserved.
/*
* Copyright (c) 2014-2015, NVIDIA CORPORATION. All rights reserved.
- *
- * SPDX-License-Identifier: GPL-2.0
*/
#define pr_fmt(fmt) "tegra-xusb-padctl: " fmt
*/
#define pr_fmt(fmt) "tegra-xusb-padctl: " fmt
@@
-84,7
+83,7
@@
tegra_xusb_padctl_group_parse_dt(struct tegra_xusb_padctl *padctl,
len = ofnode_read_string_count(node, "nvidia,lanes");
if (len < 0) {
len = ofnode_read_string_count(node, "nvidia,lanes");
if (len < 0) {
-
erro
r("failed to parse \"nvidia,lanes\" property");
+
pr_er
r("failed to parse \"nvidia,lanes\" property");
return -EINVAL;
}
return -EINVAL;
}
@@
-94,7
+93,7
@@
tegra_xusb_padctl_group_parse_dt(struct tegra_xusb_padctl *padctl,
ret = ofnode_read_string_index(node, "nvidia,lanes", i,
&group->pins[i]);
if (ret) {
ret = ofnode_read_string_index(node, "nvidia,lanes", i,
&group->pins[i]);
if (ret) {
-
erro
r("failed to read string from \"nvidia,lanes\" property");
+
pr_er
r("failed to read string from \"nvidia,lanes\" property");
return -EINVAL;
}
}
return -EINVAL;
}
}
@@
-104,7
+103,7
@@
tegra_xusb_padctl_group_parse_dt(struct tegra_xusb_padctl *padctl,
ret = ofnode_read_string_index(node, "nvidia,function", 0,
&group->func);
if (ret) {
ret = ofnode_read_string_index(node, "nvidia,function", 0,
&group->func);
if (ret) {
-
erro
r("failed to parse \"nvidia,func\" property");
+
pr_er
r("failed to parse \"nvidia,func\" property");
return -EINVAL;
}
return -EINVAL;
}
@@
-157,14
+156,14
@@
tegra_xusb_padctl_group_apply(struct tegra_xusb_padctl *padctl,
lane = tegra_xusb_padctl_find_lane(padctl, group->pins[i]);
if (!lane) {
lane = tegra_xusb_padctl_find_lane(padctl, group->pins[i]);
if (!lane) {
-
erro
r("no lane for pin %s", group->pins[i]);
+
pr_er
r("no lane for pin %s", group->pins[i]);
continue;
}
func = tegra_xusb_padctl_lane_find_function(padctl, lane,
group->func);
if (func < 0) {
continue;
}
func = tegra_xusb_padctl_lane_find_function(padctl, lane,
group->func);
if (func < 0) {
-
erro
r("function %s invalid for lane %s: %d",
+
pr_er
r("function %s invalid for lane %s: %d",
group->func, lane->name, func);
continue;
}
group->func, lane->name, func);
continue;
}
@@
-206,7
+205,7
@@
tegra_xusb_padctl_config_apply(struct tegra_xusb_padctl *padctl,
err = tegra_xusb_padctl_group_apply(padctl, group);
if (err < 0) {
err = tegra_xusb_padctl_group_apply(padctl, group);
if (err < 0) {
-
erro
r("failed to apply group %s: %d",
+
pr_er
r("failed to apply group %s: %d",
group->name, err);
continue;
}
group->name, err);
continue;
}
@@
-232,7
+231,7
@@
tegra_xusb_padctl_config_parse_dt(struct tegra_xusb_padctl *padctl,
err = tegra_xusb_padctl_group_parse_dt(padctl, group, subnode);
if (err < 0) {
err = tegra_xusb_padctl_group_parse_dt(padctl, group, subnode);
if (err < 0) {
-
erro
r("failed to parse group %s", group->name);
+
pr_er
r("failed to parse group %s", group->name);
return err;
}
return err;
}
@@
-250,7
+249,7
@@
static int tegra_xusb_padctl_parse_dt(struct tegra_xusb_padctl *padctl,
err = ofnode_read_resource(node, 0, &padctl->regs);
if (err < 0) {
err = ofnode_read_resource(node, 0, &padctl->regs);
if (err < 0) {
-
erro
r("registers not found");
+
pr_er
r("registers not found");
return err;
}
return err;
}
@@
-261,7
+260,7
@@
static int tegra_xusb_padctl_parse_dt(struct tegra_xusb_padctl *padctl,
err = tegra_xusb_padctl_config_parse_dt(padctl, config,
subnode);
if (err < 0) {
err = tegra_xusb_padctl_config_parse_dt(padctl, config,
subnode);
if (err < 0) {
-
erro
r("failed to parse entry %s: %d",
+
pr_er
r("failed to parse entry %s: %d",
config->name, err);
continue;
}
config->name, err);
continue;
}
@@
-289,7
+288,7
@@
int tegra_xusb_process_nodes(ofnode nodes[], unsigned int count,
err = tegra_xusb_padctl_parse_dt(&padctl, nodes[i]);
if (err < 0) {
err = tegra_xusb_padctl_parse_dt(&padctl, nodes[i]);
if (err < 0) {
-
erro
r("failed to parse DT: %d", err);
+
pr_er
r("failed to parse DT: %d", err);
continue;
}
continue;
}
@@
-298,7
+297,7
@@
int tegra_xusb_process_nodes(ofnode nodes[], unsigned int count,
err = tegra_xusb_padctl_config_apply(&padctl, &padctl.config);
if (err < 0) {
err = tegra_xusb_padctl_config_apply(&padctl, &padctl.config);
if (err < 0) {
-
erro
r("failed to apply pinmux: %d", err);
+
pr_er
r("failed to apply pinmux: %d", err);
continue;
}
continue;
}