[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CANLsYkzrDr6EUfVfJp25a7ztiUyxoj9BqSRa6_7RHv+9joMM7w@mail.gmail.com>
Date: Wed, 26 Oct 2016 10:39:16 -0600
From: Mathieu Poirier <mathieu.poirier@...aro.org>
To: Antoine Tenart <antoine.tenart@...e-electrons.com>
Cc: Maxime Ripard <maxime.ripard@...e-electrons.com>,
pantelis.antoniou@...sulko.com,
Mark Rutland <mark.rutland@....com>, sboyd@...eaurora.org,
Thomas Petazzoni <thomas.petazzoni@...e-electrons.com>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>
Subject: Re: [RFC PATCH 3/5] w1: report errors returned by w1_family_notify
On 26 October 2016 at 08:57, Antoine Tenart
<antoine.tenart@...e-electrons.com> wrote:
GKH won't accept an empty commit log.
> Signed-off-by: Antoine Tenart <antoine.tenart@...e-electrons.com>
> ---
> drivers/w1/w1.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/w1/w1.c b/drivers/w1/w1.c
> index bb34362e930a..80d0cc4e6e7f 100644
> --- a/drivers/w1/w1.c
> +++ b/drivers/w1/w1.c
> @@ -702,7 +702,9 @@ static int __w1_attach_slave_device(struct w1_slave *sl)
> dev_name(&sl->dev), err);
> return err;
> }
> - w1_family_notify(BUS_NOTIFY_ADD_DEVICE, sl);
> + err = w1_family_notify(BUS_NOTIFY_ADD_DEVICE, sl);
> + if (err)
> + return err;
>
> dev_set_uevent_suppress(&sl->dev, false);
> kobject_uevent(&sl->dev.kobj, KOBJ_ADD);
> --
> 2.10.1
>
> --
> To unsubscribe from this list: send the line "unsubscribe devicetree" in
> the body of a message to majordomo@...r.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists