[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAOMZO5Bb2i2Xr2-+6pNSy5WHxh1FK3utB3-VqS6X-_OK=+t82g@mail.gmail.com>
Date: Sat, 20 Jun 2015 14:47:20 -0300
From: Fabio Estevam <festevam@...il.com>
To: Andrew Lunn <andrew@...n.ch>
Cc: David Miller <davem@...emloft.net>,
Nimrod Andy <B38611@...escale.com>,
Duan Andy <fugang.duan@...escale.com>,
Cory Tusar <cory.tusar@...1solutions.com>,
netdev <netdev@...r.kernel.org>
Subject: Re: [PATCHv2 net-next] net: fec: Ensure clocks are enabled while
using mdio bus
On Sat, Jun 20, 2015 at 1:15 PM, Andrew Lunn <andrew@...n.ch> wrote:
> @@ -1764,6 +1765,11 @@ static int fec_enet_mdio_read(struct mii_bus *bus, int mii_id, int regnum)
> {
> struct fec_enet_private *fep = bus->priv;
> unsigned long time_left;
> + int ret;
> +
> + ret = clk_prepare_enable(fep->clk_ipg);
> + if (ret)
> + return 0xffff;
Why don`t you return ret instead?
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
Powered by blists - more mailing lists