Re: [PATCH RESEND 3/5 v6] gpiolib: Fix default attributes for class

From: Grant Likely
Date: Wed Oct 31 2012 - 11:05:21 EST


On Sun, Oct 28, 2012 at 9:46 PM, Roland Stigge <stigge@xxxxxxxxx> wrote:
> There is a race condition between creating a gpio or gpiochip device and adding
> default attributes. This patch fixes this by defining the default attributes as
> dev_attrs of the class. For this, it was necessary to create a separate
> gpiochip_class besides gpio_class.
>
> Signed-off-by: Roland Stigge <stigge@xxxxxxxxx>

This looks right, but I need to test it....

g.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/