[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAPDyKFqJTB=Q=uQtqHVy7_ssoDyUSDZtB7H+k00QFnwXqDkzDQ@mail.gmail.com>
Date: Wed, 10 Feb 2016 17:39:57 +0100
From: Ulf Hansson <ulf.hansson@...aro.org>
To: Marek Szyprowski <m.szyprowski@...sung.com>
Cc: linux-samsung-soc <linux-samsung-soc@...r.kernel.org>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Russell King - ARM Linux <linux@....linux.org.uk>,
Tomeu Vizoso <tomeu.vizoso@...labora.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Dan Williams <dan.j.williams@...el.com>,
Kukjin Kim <kgene@...nel.org>,
Krzysztof Kozlowski <k.kozlowski@...sung.com>,
Bartlomiej Zolnierkiewicz <b.zolnierkie@...sung.com>
Subject: Re: [PATCH v5 RESEND 2/5] ARM: sa1111: ensure no negative value gets
returned on positive match
On 10 February 2016 at 11:47, Marek Szyprowski <m.szyprowski@...sung.com> wrote:
> This patch ensures that existing bus match callbacks don't return
> negative values (which might be interpreted as potential errors in the
> future) in case of positive match.
>
> Signed-off-by: Marek Szyprowski <m.szyprowski@...sung.com>
FYI:
This one has actually been acked by Russell.
https://lkml.org/lkml/2015/12/23/111
Kind regards
Uffe
> ---
> arch/arm/common/sa1111.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm/common/sa1111.c b/arch/arm/common/sa1111.c
> index 3d22494..fb0a0a4 100644
> --- a/arch/arm/common/sa1111.c
> +++ b/arch/arm/common/sa1111.c
> @@ -1290,7 +1290,7 @@ static int sa1111_match(struct device *_dev, struct device_driver *_drv)
> struct sa1111_dev *dev = SA1111_DEV(_dev);
> struct sa1111_driver *drv = SA1111_DRV(_drv);
>
> - return dev->devid & drv->devid;
> + return !!(dev->devid & drv->devid);
> }
>
> static int sa1111_bus_suspend(struct device *dev, pm_message_t state)
> --
> 1.9.2
>
Powered by blists - more mailing lists