hw_random: bcm63xx-rng: fix bugs introduced in commit 6229c16060fee9a015bf476f21e40c6f08609d6e.
Subsystems (2)
PATCH 1/1 hw_random: bcm63xx-rng: fix bugs introduced in commit 6229c16060fee9a015bf476f21e40c6f08609d6e.
s/clk_didsable_unprepare/clk_disable_unprepare
s/prov/priv
s/error/ret in bcm63xx_rng_probe
--- drivers/char/hw_random/bcm63xx-rng.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-)
drivers/char/hw_random/bcm63xx-rng.c +9 -9
@@ -57,7 +57,7 @@ static void bcm63xx_rng_cleanup(struct hwrng *rng) val &= ~RNG_EN ;__raw_writel (val, priv->regs +RNG_CTRL ); -clk_didsable_unprepare (prov->clk); +clk_disable_unprepare (priv->clk); }static int bcm63xx_rng_data_present (struct hwrng *rng,int wait)
@@ -97,14 +97,14 @@ static int bcm63xx_rng_probe(struct platform_device *pdev) priv->rng.name = pdev->name; priv->rng.init = bcm63xx_rng_init; priv->rng.cleanup = bcm63xx_rng_cleanup; - prov->rng.data_present = bcm63xx_rng_data_present; + priv->rng.data_present = bcm63xx_rng_data_present; priv->rng.data_read = bcm63xx_rng_data_read; priv->clk =devm_clk_get (&pdev->dev,"ipsec" );if (IS_ERR (priv->clk)) { - error =PTR_ERR (priv->clk); -dev_err (&pdev->dev,"no clock for device: %d\n" , error); -return error; + ret =PTR_ERR (priv->clk); +dev_err (&pdev->dev,"no clock for device: %d\n" , ret); +return ret; } if (!devm_request_mem_region(&pdev->dev, r->start,
@@ -120,11 +120,11 @@ static int bcm63xx_rng_probe(struct platform_device *pdev)return -ENOMEM ; } - error =devm_hwrng_register (&pdev->dev, &priv->rng); -if (error) { + ret =devm_hwrng_register (&pdev->dev, &priv->rng); +if (ret) {dev_err (&pdev->dev,"failed to register rng device: %d\n" , - error); -return error; + ret); +return ret; }dev_info (&pdev->dev,"registered RNG driver\n" );
Signature · 1 line
1.9.1
Quoted 3 lines · Álvaro Fernández Rojas
s/clk_didsable_unprepare/clk_disable_unprepare
s/prov/priv
s/error/ret inbcm63xx_rng_probe
Thanks for fixing that!
Could you resubmit with a "Fixes" tag like this and remove the long commit id from the subject?
Even for mechanical devm_* transformations, it would be nice to be CC'd on the patches ;)
Quoted 55 lines
Signed-off-by Álvaro Fernández Rojas <[email protected]>--- drivers/char/hw_random/bcm63xx-rng.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-)drivers/char/hw_random/bcm63xx-rng.c +9
-9@@ -57,7 +57,7 @@ static void bcm63xx_rng_cleanup(struct hwrng *rng) val &= ~RNG_EN ;__raw_writel (val, priv->regs +RNG_CTRL ); -clk_didsable_unprepare (prov->clk); +clk_disable_unprepare (priv->clk); }static int bcm63xx_rng_data_present (struct hwrng *rng,int wait)@@ -97,14 +97,14 @@ static int bcm63xx_rng_probe(struct platform_device *pdev) priv->rng.name = pdev->name; priv->rng.init = bcm63xx_rng_init; priv->rng.cleanup = bcm63xx_rng_cleanup; - prov->rng.data_present = bcm63xx_rng_data_present; + priv->rng.data_present = bcm63xx_rng_data_present; priv->rng.data_read = bcm63xx_rng_data_read; priv->clk =devm_clk_get (&pdev->dev,"ipsec" );if (IS_ERR (priv->clk)) { - error =PTR_ERR (priv->clk); -dev_err (&pdev->dev,"no clock for device: %d\n" , error); -return error; + ret =PTR_ERR (priv->clk); +dev_err (&pdev->dev,"no clock for device: %d\n" , ret); +return ret; } if (!devm_request_mem_region(&pdev->dev, r->start,@@ -120,11 +120,11 @@ static int bcm63xx_rng_probe(struct platform_device *pdev)return -ENOMEM ; } - error =devm_hwrng_register (&pdev->dev, &priv->rng); -if (error) { + ret =devm_hwrng_register (&pdev->dev, &priv->rng); +if (ret) {dev_err (&pdev->dev,"failed to register rng device: %d\n" , - error); -return error; + ret); +return ret; }dev_info (&pdev->dev,"registered RNG driver\n" );
Signature · 1 line
Florian
PATCH v2 1/1 hw_random: bcm63xx-rng: Fix driver compilation
In reply to Álvaro Fernández Rojas- s/clk_didsable_unprepare/clk_disable_unprepare
- s/prov/priv
- s/error/ret (bcm63xx_rng_probe)
---
v2: fix subject, add fixes tag as suggested by Florian
drivers/char/hw_random/bcm63xx-rng.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-)
drivers/char/hw_random/bcm63xx-rng.c +9 -9
@@ -57,7 +57,7 @@ static void bcm63xx_rng_cleanup(struct hwrng *rng) val &= ~RNG_EN ;__raw_writel (val, priv->regs +RNG_CTRL ); -clk_didsable_unprepare (prov->clk); +clk_disable_unprepare (priv->clk); }static int bcm63xx_rng_data_present (struct hwrng *rng,int wait)
@@ -97,14 +97,14 @@ static int bcm63xx_rng_probe(struct platform_device *pdev) priv->rng.name = pdev->name; priv->rng.init = bcm63xx_rng_init; priv->rng.cleanup = bcm63xx_rng_cleanup; - prov->rng.data_present = bcm63xx_rng_data_present; + priv->rng.data_present = bcm63xx_rng_data_present; priv->rng.data_read = bcm63xx_rng_data_read; priv->clk =devm_clk_get (&pdev->dev,"ipsec" );if (IS_ERR (priv->clk)) { - error =PTR_ERR (priv->clk); -dev_err (&pdev->dev,"no clock for device: %d\n" , error); -return error; + ret =PTR_ERR (priv->clk); +dev_err (&pdev->dev,"no clock for device: %d\n" , ret); +return ret; } if (!devm_request_mem_region(&pdev->dev, r->start,
@@ -120,11 +120,11 @@ static int bcm63xx_rng_probe(struct platform_device *pdev)return -ENOMEM ; } - error =devm_hwrng_register (&pdev->dev, &priv->rng); -if (error) { + ret =devm_hwrng_register (&pdev->dev, &priv->rng); +if (ret) {dev_err (&pdev->dev,"failed to register rng device: %d\n" , - error); -return error; + ret); +return ret; }dev_info (&pdev->dev,"registered RNG driver\n" );
Signature · 1 line
1.9.1
Re: [PATCH v2] hw_random: bcm63xx-rng: Fix driver compilation
Quoted 6 lines · Álvaro Fernández Rojas
- s/clk_didsable_unprepare/clk_disable_unprepare
- s/prov/priv
- s/error/ret (bcm63xx_rng_probe)Fixes 6229c16060fe ("hwrng: bcm63xx - make use of devm_hwrng_register")Signed-off-by Álvaro Fernández Rojas <[email protected]>
Applied.
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt