net, can, ti_hecc: fix a run time warn_on.
Subsystems (3)
PATCH 1/1 net, can, ti_hecc: fix a run time warn_on.
This patch fixes a warning in clk_enable by calling clk_prepare_enable instead.
Signed-off-by Heiko Schocher <[email protected]>
---
drivers/net/can/ti_hecc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/can/ti_hecc.c +1 -1
@@ -951,7 +951,7 @@ static int ti_hecc_probe(struct platform_device *pdev)netif_napi_add (ndev, &priv->napi, ti_hecc_rx_poll,HECC_DEF_NAPI_WEIGHT ); -clk_enable (priv->clk); +clk_prepare_enable (priv->clk); err =register_candev (ndev);if (err) {dev_err (&pdev->dev,"register_candev() failed\n" );
Signature · 1 line
2.1.0
Marc Kleine-Budde
maintainerQuoted 2 lines · Heiko Schocher
This patch fixes a warning in
clk_enableby callingclk_prepare_enableinstead.
What about the corresponding clk_disable_unprepare()?
Marc
Quoted 21 lines
Signed-off-by Heiko Schocher <[email protected]>---
drivers/net/can/ti_hecc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/net/can/ti_hecc.c +1
-1@@ -951,7 +951,7 @@ static int ti_hecc_probe(struct platform_device *pdev)netif_napi_add (ndev, &priv->napi, ti_hecc_rx_poll,HECC_DEF_NAPI_WEIGHT ); -clk_enable (priv->clk); +clk_prepare_enable (priv->clk); err =register_candev (ndev);if (err) {dev_err (&pdev->dev,"register_candev() failed\n" );
Signature · 4 lines
Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
Hello Marc,
Am 19.10.2015 um 08:34 schrieb Marc Kleine-Budde:
Quoted 5 lines · Heiko Schocher
Quoted 2 lines
This patch fixes a warning in
clk_enableby callingclk_prepare_enableinstead.What about the corresponding
clk_disable_unprepare()?
Yes, that should be fixed too, do this in a v2, thanks!
bye,
Heiko
Quoted 26 lines
Marc
Quoted 21 lines
Signed-off-by Heiko Schocher <[email protected]>---
drivers/net/can/ti_hecc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/net/can/ti_hecc.c +1
-1@@ -951,7 +951,7 @@ static int ti_hecc_probe(struct platform_device *pdev)netif_napi_add (ndev, &priv->napi, ti_hecc_rx_poll,HECC_DEF_NAPI_WEIGHT ); -clk_enable (priv->clk); +clk_prepare_enable (priv->clk); err =register_candev (ndev);if (err) {dev_err (&pdev->dev,"register_candev() failed\n" );
Signature · 2 lines
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany