提交 3d0cb73e 编写于 作者: J Joe Perches 提交者: Tony Lindgren

arm: mach-omap2: Convert pr_warning to pr_warn

Use the more common pr_warn.

Other miscellanea:

o Realign arguments
Signed-off-by: NJoe Perches <joe@perches.com>
Signed-off-by: NTony Lindgren <tony@atomide.com>
上级 175655bd
...@@ -544,7 +544,7 @@ int omap_dss_reset(struct omap_hwmod *oh) ...@@ -544,7 +544,7 @@ int omap_dss_reset(struct omap_hwmod *oh)
MAX_MODULE_SOFTRESET_WAIT, c); MAX_MODULE_SOFTRESET_WAIT, c);
if (c == MAX_MODULE_SOFTRESET_WAIT) if (c == MAX_MODULE_SOFTRESET_WAIT)
pr_warning("dss_core: waiting for reset to finish failed\n"); pr_warn("dss_core: waiting for reset to finish failed\n");
else else
pr_debug("dss_core: softreset done\n"); pr_debug("dss_core: softreset done\n");
......
...@@ -67,7 +67,7 @@ int omap_hdq1w_reset(struct omap_hwmod *oh) ...@@ -67,7 +67,7 @@ int omap_hdq1w_reset(struct omap_hwmod *oh)
MAX_MODULE_SOFTRESET_WAIT, c); MAX_MODULE_SOFTRESET_WAIT, c);
if (c == MAX_MODULE_SOFTRESET_WAIT) if (c == MAX_MODULE_SOFTRESET_WAIT)
pr_warning("%s: %s: softreset failed (waited %d usec)\n", pr_warn("%s: %s: softreset failed (waited %d usec)\n",
__func__, oh->name, MAX_MODULE_SOFTRESET_WAIT); __func__, oh->name, MAX_MODULE_SOFTRESET_WAIT);
else else
pr_debug("%s: %s: softreset in %d usec\n", __func__, pr_debug("%s: %s: softreset in %d usec\n", __func__,
......
...@@ -99,7 +99,7 @@ int omap_i2c_reset(struct omap_hwmod *oh) ...@@ -99,7 +99,7 @@ int omap_i2c_reset(struct omap_hwmod *oh)
MAX_MODULE_SOFTRESET_WAIT, c); MAX_MODULE_SOFTRESET_WAIT, c);
if (c == MAX_MODULE_SOFTRESET_WAIT) if (c == MAX_MODULE_SOFTRESET_WAIT)
pr_warning("%s: %s: softreset failed (waited %d usec)\n", pr_warn("%s: %s: softreset failed (waited %d usec)\n",
__func__, oh->name, MAX_MODULE_SOFTRESET_WAIT); __func__, oh->name, MAX_MODULE_SOFTRESET_WAIT);
else else
pr_debug("%s: %s: softreset in %d usec\n", __func__, pr_debug("%s: %s: softreset in %d usec\n", __func__,
......
...@@ -76,7 +76,7 @@ int omap_msdi_reset(struct omap_hwmod *oh) ...@@ -76,7 +76,7 @@ int omap_msdi_reset(struct omap_hwmod *oh)
MAX_MODULE_SOFTRESET_WAIT, c); MAX_MODULE_SOFTRESET_WAIT, c);
if (c == MAX_MODULE_SOFTRESET_WAIT) if (c == MAX_MODULE_SOFTRESET_WAIT)
pr_warning("%s: %s: softreset failed (waited %d usec)\n", pr_warn("%s: %s: softreset failed (waited %d usec)\n",
__func__, oh->name, MAX_MODULE_SOFTRESET_WAIT); __func__, oh->name, MAX_MODULE_SOFTRESET_WAIT);
else else
pr_debug("%s: %s: softreset in %d usec\n", __func__, pr_debug("%s: %s: softreset in %d usec\n", __func__,
......
...@@ -814,7 +814,7 @@ int __init omap_mux_late_init(void) ...@@ -814,7 +814,7 @@ int __init omap_mux_late_init(void)
"hwmod_io", omap_mux_late_init); "hwmod_io", omap_mux_late_init);
if (ret) if (ret)
pr_warning("mux: Failed to setup hwmod io irq %d\n", ret); pr_warn("mux: Failed to setup hwmod io irq %d\n", ret);
return 0; return 0;
} }
......
...@@ -769,7 +769,7 @@ static int _init_main_clk(struct omap_hwmod *oh) ...@@ -769,7 +769,7 @@ static int _init_main_clk(struct omap_hwmod *oh)
oh->_clk = clk_get(NULL, oh->main_clk); oh->_clk = clk_get(NULL, oh->main_clk);
if (IS_ERR(oh->_clk)) { if (IS_ERR(oh->_clk)) {
pr_warning("omap_hwmod: %s: cannot clk_get main_clk %s\n", pr_warn("omap_hwmod: %s: cannot clk_get main_clk %s\n",
oh->name, oh->main_clk); oh->name, oh->main_clk);
return -EINVAL; return -EINVAL;
} }
...@@ -814,7 +814,7 @@ static int _init_interface_clks(struct omap_hwmod *oh) ...@@ -814,7 +814,7 @@ static int _init_interface_clks(struct omap_hwmod *oh)
c = clk_get(NULL, os->clk); c = clk_get(NULL, os->clk);
if (IS_ERR(c)) { if (IS_ERR(c)) {
pr_warning("omap_hwmod: %s: cannot clk_get interface_clk %s\n", pr_warn("omap_hwmod: %s: cannot clk_get interface_clk %s\n",
oh->name, os->clk); oh->name, os->clk);
ret = -EINVAL; ret = -EINVAL;
continue; continue;
...@@ -851,7 +851,7 @@ static int _init_opt_clks(struct omap_hwmod *oh) ...@@ -851,7 +851,7 @@ static int _init_opt_clks(struct omap_hwmod *oh)
for (i = oh->opt_clks_cnt, oc = oh->opt_clks; i > 0; i--, oc++) { for (i = oh->opt_clks_cnt, oc = oh->opt_clks; i > 0; i--, oc++) {
c = clk_get(NULL, oc->clk); c = clk_get(NULL, oc->clk);
if (IS_ERR(c)) { if (IS_ERR(c)) {
pr_warning("omap_hwmod: %s: cannot clk_get opt_clk %s\n", pr_warn("omap_hwmod: %s: cannot clk_get opt_clk %s\n",
oh->name, oc->clk); oh->name, oc->clk);
ret = -EINVAL; ret = -EINVAL;
continue; continue;
...@@ -1576,7 +1576,7 @@ static int _init_clkdm(struct omap_hwmod *oh) ...@@ -1576,7 +1576,7 @@ static int _init_clkdm(struct omap_hwmod *oh)
oh->clkdm = clkdm_lookup(oh->clkdm_name); oh->clkdm = clkdm_lookup(oh->clkdm_name);
if (!oh->clkdm) { if (!oh->clkdm) {
pr_warning("omap_hwmod: %s: could not associate to clkdm %s\n", pr_warn("omap_hwmod: %s: could not associate to clkdm %s\n",
oh->name, oh->clkdm_name); oh->name, oh->clkdm_name);
return 0; return 0;
} }
...@@ -1616,7 +1616,7 @@ static int _init_clocks(struct omap_hwmod *oh, void *data) ...@@ -1616,7 +1616,7 @@ static int _init_clocks(struct omap_hwmod *oh, void *data)
if (!ret) if (!ret)
oh->_state = _HWMOD_STATE_CLKS_INITED; oh->_state = _HWMOD_STATE_CLKS_INITED;
else else
pr_warning("omap_hwmod: %s: cannot _init_clocks\n", oh->name); pr_warn("omap_hwmod: %s: cannot _init_clocks\n", oh->name);
return ret; return ret;
} }
...@@ -1739,7 +1739,7 @@ static int _deassert_hardreset(struct omap_hwmod *oh, const char *name) ...@@ -1739,7 +1739,7 @@ static int _deassert_hardreset(struct omap_hwmod *oh, const char *name)
_disable_clocks(oh); _disable_clocks(oh);
if (ret == -EBUSY) if (ret == -EBUSY)
pr_warning("omap_hwmod: %s: failed to hardreset\n", oh->name); pr_warn("omap_hwmod: %s: failed to hardreset\n", oh->name);
if (!ret) { if (!ret) {
/* /*
...@@ -1953,7 +1953,7 @@ static int _ocp_softreset(struct omap_hwmod *oh) ...@@ -1953,7 +1953,7 @@ static int _ocp_softreset(struct omap_hwmod *oh)
c = _wait_softreset_complete(oh); c = _wait_softreset_complete(oh);
if (c == MAX_MODULE_SOFTRESET_WAIT) { if (c == MAX_MODULE_SOFTRESET_WAIT) {
pr_warning("omap_hwmod: %s: softreset failed (waited %d usec)\n", pr_warn("omap_hwmod: %s: softreset failed (waited %d usec)\n",
oh->name, MAX_MODULE_SOFTRESET_WAIT); oh->name, MAX_MODULE_SOFTRESET_WAIT);
ret = -ETIMEDOUT; ret = -ETIMEDOUT;
goto dis_opt_clks; goto dis_opt_clks;
...@@ -2614,7 +2614,7 @@ static int __init _setup_reset(struct omap_hwmod *oh) ...@@ -2614,7 +2614,7 @@ static int __init _setup_reset(struct omap_hwmod *oh)
if (oh->rst_lines_cnt == 0) { if (oh->rst_lines_cnt == 0) {
r = _enable(oh); r = _enable(oh);
if (r) { if (r) {
pr_warning("omap_hwmod: %s: cannot be enabled for reset (%d)\n", pr_warn("omap_hwmod: %s: cannot be enabled for reset (%d)\n",
oh->name, oh->_state); oh->name, oh->_state);
return -EINVAL; return -EINVAL;
} }
......
...@@ -244,8 +244,8 @@ static void __init nokia_n900_legacy_init(void) ...@@ -244,8 +244,8 @@ static void __init nokia_n900_legacy_init(void)
/* set IBE to 1 */ /* set IBE to 1 */
rx51_secure_update_aux_cr(BIT(6), 0); rx51_secure_update_aux_cr(BIT(6), 0);
} else { } else {
pr_warning("RX-51: Not enabling ARM errata 430973 workaround\n"); pr_warn("RX-51: Not enabling ARM errata 430973 workaround\n");
pr_warning("Thumb binaries may crash randomly without this workaround\n"); pr_warn("Thumb binaries may crash randomly without this workaround\n");
} }
pr_info("RX-51: Registring OMAP3 HWRNG device\n"); pr_info("RX-51: Registring OMAP3 HWRNG device\n");
......
...@@ -465,7 +465,7 @@ int __init omap3_pm_init(void) ...@@ -465,7 +465,7 @@ int __init omap3_pm_init(void)
int ret; int ret;
if (!omap3_has_io_chain_ctrl()) if (!omap3_has_io_chain_ctrl())
pr_warning("PM: no software I/O chain control; some wakeups may be lost\n"); pr_warn("PM: no software I/O chain control; some wakeups may be lost\n");
pm_errata_configure(); pm_errata_configure();
......
...@@ -20,7 +20,7 @@ static int sr_class3_enable(struct omap_sr *sr) ...@@ -20,7 +20,7 @@ static int sr_class3_enable(struct omap_sr *sr)
unsigned long volt = voltdm_get_voltage(sr->voltdm); unsigned long volt = voltdm_get_voltage(sr->voltdm);
if (!volt) { if (!volt) {
pr_warning("%s: Curr voltage unknown. Cannot enable %s\n", pr_warn("%s: Curr voltage unknown. Cannot enable %s\n",
__func__, sr->name); __func__, sr->name);
return -ENODATA; return -ENODATA;
} }
......
...@@ -154,7 +154,7 @@ static int __init sr_dev_init(struct omap_hwmod *oh, void *user) ...@@ -154,7 +154,7 @@ static int __init sr_dev_init(struct omap_hwmod *oh, void *user)
pdev = omap_device_build(name, i, oh, sr_data, sizeof(*sr_data)); pdev = omap_device_build(name, i, oh, sr_data, sizeof(*sr_data));
if (IS_ERR(pdev)) if (IS_ERR(pdev))
pr_warning("%s: Could not build omap_device for %s: %s.\n\n", pr_warn("%s: Could not build omap_device for %s: %s\n",
__func__, name, oh->name); __func__, name, oh->name);
exit: exit:
i++; i++;
......
...@@ -198,7 +198,7 @@ int omap_vc_bypass_scale(struct voltagedomain *voltdm, ...@@ -198,7 +198,7 @@ int omap_vc_bypass_scale(struct voltagedomain *voltdm,
loop_cnt++; loop_cnt++;
if (retries_cnt > 10) { if (retries_cnt > 10) {
pr_warning("%s: Retry count exceeded\n", __func__); pr_warn("%s: Retry count exceeded\n", __func__);
return -ETIMEDOUT; return -ETIMEDOUT;
} }
......
...@@ -55,7 +55,7 @@ static LIST_HEAD(voltdm_list); ...@@ -55,7 +55,7 @@ static LIST_HEAD(voltdm_list);
unsigned long voltdm_get_voltage(struct voltagedomain *voltdm) unsigned long voltdm_get_voltage(struct voltagedomain *voltdm)
{ {
if (!voltdm || IS_ERR(voltdm)) { if (!voltdm || IS_ERR(voltdm)) {
pr_warning("%s: VDD specified does not exist!\n", __func__); pr_warn("%s: VDD specified does not exist!\n", __func__);
return 0; return 0;
} }
...@@ -77,7 +77,7 @@ int voltdm_scale(struct voltagedomain *voltdm, ...@@ -77,7 +77,7 @@ int voltdm_scale(struct voltagedomain *voltdm,
unsigned long volt = 0; unsigned long volt = 0;
if (!voltdm || IS_ERR(voltdm)) { if (!voltdm || IS_ERR(voltdm)) {
pr_warning("%s: VDD specified does not exist!\n", __func__); pr_warn("%s: VDD specified does not exist!\n", __func__);
return -EINVAL; return -EINVAL;
} }
...@@ -96,7 +96,7 @@ int voltdm_scale(struct voltagedomain *voltdm, ...@@ -96,7 +96,7 @@ int voltdm_scale(struct voltagedomain *voltdm,
} }
if (!volt) { if (!volt) {
pr_warning("%s: not scaling. OPP voltage for %lu, not found.\n", pr_warn("%s: not scaling. OPP voltage for %lu, not found.\n",
__func__, target_volt); __func__, target_volt);
return -EINVAL; return -EINVAL;
} }
...@@ -122,7 +122,7 @@ void voltdm_reset(struct voltagedomain *voltdm) ...@@ -122,7 +122,7 @@ void voltdm_reset(struct voltagedomain *voltdm)
unsigned long target_volt; unsigned long target_volt;
if (!voltdm || IS_ERR(voltdm)) { if (!voltdm || IS_ERR(voltdm)) {
pr_warning("%s: VDD specified does not exist!\n", __func__); pr_warn("%s: VDD specified does not exist!\n", __func__);
return; return;
} }
...@@ -152,7 +152,7 @@ void omap_voltage_get_volttable(struct voltagedomain *voltdm, ...@@ -152,7 +152,7 @@ void omap_voltage_get_volttable(struct voltagedomain *voltdm,
struct omap_volt_data **volt_data) struct omap_volt_data **volt_data)
{ {
if (!voltdm || IS_ERR(voltdm)) { if (!voltdm || IS_ERR(voltdm)) {
pr_warning("%s: VDD specified does not exist!\n", __func__); pr_warn("%s: VDD specified does not exist!\n", __func__);
return; return;
} }
...@@ -180,12 +180,12 @@ struct omap_volt_data *omap_voltage_get_voltdata(struct voltagedomain *voltdm, ...@@ -180,12 +180,12 @@ struct omap_volt_data *omap_voltage_get_voltdata(struct voltagedomain *voltdm,
int i; int i;
if (!voltdm || IS_ERR(voltdm)) { if (!voltdm || IS_ERR(voltdm)) {
pr_warning("%s: VDD specified does not exist!\n", __func__); pr_warn("%s: VDD specified does not exist!\n", __func__);
return ERR_PTR(-EINVAL); return ERR_PTR(-EINVAL);
} }
if (!voltdm->volt_data) { if (!voltdm->volt_data) {
pr_warning("%s: voltage table does not exist for vdd_%s\n", pr_warn("%s: voltage table does not exist for vdd_%s\n",
__func__, voltdm->name); __func__, voltdm->name);
return ERR_PTR(-ENODATA); return ERR_PTR(-ENODATA);
} }
...@@ -214,7 +214,7 @@ int omap_voltage_register_pmic(struct voltagedomain *voltdm, ...@@ -214,7 +214,7 @@ int omap_voltage_register_pmic(struct voltagedomain *voltdm,
struct omap_voltdm_pmic *pmic) struct omap_voltdm_pmic *pmic)
{ {
if (!voltdm || IS_ERR(voltdm)) { if (!voltdm || IS_ERR(voltdm)) {
pr_warning("%s: VDD specified does not exist!\n", __func__); pr_warn("%s: VDD specified does not exist!\n", __func__);
return -EINVAL; return -EINVAL;
} }
...@@ -237,7 +237,7 @@ void omap_change_voltscale_method(struct voltagedomain *voltdm, ...@@ -237,7 +237,7 @@ void omap_change_voltscale_method(struct voltagedomain *voltdm,
int voltscale_method) int voltscale_method)
{ {
if (!voltdm || IS_ERR(voltdm)) { if (!voltdm || IS_ERR(voltdm)) {
pr_warning("%s: VDD specified does not exist!\n", __func__); pr_warn("%s: VDD specified does not exist!\n", __func__);
return; return;
} }
...@@ -279,7 +279,7 @@ int __init omap_voltage_late_init(void) ...@@ -279,7 +279,7 @@ int __init omap_voltage_late_init(void)
sys_ck = clk_get(NULL, voltdm->sys_clk.name); sys_ck = clk_get(NULL, voltdm->sys_clk.name);
if (IS_ERR(sys_ck)) { if (IS_ERR(sys_ck)) {
pr_warning("%s: Could not get sys clk.\n", __func__); pr_warn("%s: Could not get sys clk.\n", __func__);
return -EINVAL; return -EINVAL;
} }
voltdm->sys_clk.rate = clk_get_rate(sys_ck); voltdm->sys_clk.rate = clk_get_rate(sys_ck);
......
...@@ -93,7 +93,7 @@ int omap2_wd_timer_reset(struct omap_hwmod *oh) ...@@ -93,7 +93,7 @@ int omap2_wd_timer_reset(struct omap_hwmod *oh)
udelay(oh->class->sysc->srst_udelay); udelay(oh->class->sysc->srst_udelay);
if (c == MAX_MODULE_SOFTRESET_WAIT) if (c == MAX_MODULE_SOFTRESET_WAIT)
pr_warning("%s: %s: softreset failed (waited %d usec)\n", pr_warn("%s: %s: softreset failed (waited %d usec)\n",
__func__, oh->name, MAX_MODULE_SOFTRESET_WAIT); __func__, oh->name, MAX_MODULE_SOFTRESET_WAIT);
else else
pr_debug("%s: %s: softreset in %d usec\n", __func__, pr_debug("%s: %s: softreset in %d usec\n", __func__,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册