Message ID | 20171013111943.zyp5myiwb3pp56vh@mwanda (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
On Fri, Oct 13, 2017 at 1:19 PM, Dan Carpenter <dan.carpenter@oracle.com> wrote: > This has a copy and paste bug so we use "host->fixed_factor_clk" which > is a valid pointer instead of "host->cfg_div_clk" which holds the error > code. > > Fixes: 0aa0fb9cd239 ("mmc: meson-mx-sdio: Add a driver for the Amlogic Meson8 and Meson8b SoCs") > Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> thank you for spotting and fixing this! > > diff --git a/drivers/mmc/host/meson-mx-sdio.c b/drivers/mmc/host/meson-mx-sdio.c > index 19b499bbe691..dc30ed5e964b 100644 > --- a/drivers/mmc/host/meson-mx-sdio.c > +++ b/drivers/mmc/host/meson-mx-sdio.c > @@ -621,7 +621,7 @@ static int meson_mx_mmc_register_clks(struct meson_mx_mmc_host *host) > host->cfg_div_clk = devm_clk_register(host->controller_dev, > &host->cfg_div.hw); > if (WARN_ON(PTR_ERR_OR_ZERO(host->cfg_div_clk))) > - return PTR_ERR(host->fixed_factor_clk); > + return PTR_ERR(host->cfg_div_clk); > > return 0; > } > > _______________________________________________ > linux-amlogic mailing list > linux-amlogic@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-amlogic
On 13 October 2017 at 13:19, Dan Carpenter <dan.carpenter@oracle.com> wrote: > This has a copy and paste bug so we use "host->fixed_factor_clk" which > is a valid pointer instead of "host->cfg_div_clk" which holds the error > code. > > Fixes: 0aa0fb9cd239 ("mmc: meson-mx-sdio: Add a driver for the Amlogic Meson8 and Meson8b SoCs") > Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Thanks, applied for next! Kind regards Uffe > > diff --git a/drivers/mmc/host/meson-mx-sdio.c b/drivers/mmc/host/meson-mx-sdio.c > index 19b499bbe691..dc30ed5e964b 100644 > --- a/drivers/mmc/host/meson-mx-sdio.c > +++ b/drivers/mmc/host/meson-mx-sdio.c > @@ -621,7 +621,7 @@ static int meson_mx_mmc_register_clks(struct meson_mx_mmc_host *host) > host->cfg_div_clk = devm_clk_register(host->controller_dev, > &host->cfg_div.hw); > if (WARN_ON(PTR_ERR_OR_ZERO(host->cfg_div_clk))) > - return PTR_ERR(host->fixed_factor_clk); > + return PTR_ERR(host->cfg_div_clk); > > return 0; > }
diff --git a/drivers/mmc/host/meson-mx-sdio.c b/drivers/mmc/host/meson-mx-sdio.c index 19b499bbe691..dc30ed5e964b 100644 --- a/drivers/mmc/host/meson-mx-sdio.c +++ b/drivers/mmc/host/meson-mx-sdio.c @@ -621,7 +621,7 @@ static int meson_mx_mmc_register_clks(struct meson_mx_mmc_host *host) host->cfg_div_clk = devm_clk_register(host->controller_dev, &host->cfg_div.hw); if (WARN_ON(PTR_ERR_OR_ZERO(host->cfg_div_clk))) - return PTR_ERR(host->fixed_factor_clk); + return PTR_ERR(host->cfg_div_clk); return 0; }
This has a copy and paste bug so we use "host->fixed_factor_clk" which is a valid pointer instead of "host->cfg_div_clk" which holds the error code. Fixes: 0aa0fb9cd239 ("mmc: meson-mx-sdio: Add a driver for the Amlogic Meson8 and Meson8b SoCs") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>