[PATCH 4/6 v13] gpiolib: Fix default attributes for class

2012-12-30 Thread Roland Stigge
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

[PATCH 4/6 v13] gpiolib: Fix default attributes for class

2012-12-30 Thread Roland Stigge
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