Re: [PATCH] gpiolib: fix sysfs when cdev is not selected

2020-11-05 Thread Bartosz Golaszewski
On Thu, Nov 5, 2020 at 11:41 AM Kent Gibson wrote: > > In gpiochip_setup_dev() the call to gpiolib_cdev_register() indirectly > calls device_add(). This is still required for the sysfs even when > CONFIG_GPIO_CDEV is not selected in the build. > > Replace the stubbed functions in gpiolib-cdev.h w

Re: [PATCH] gpiolib: fix sysfs when cdev is not selected

2020-11-05 Thread Nicolas Schichan
Hello Kent, On Thu, Nov 5, 2020 at 11:41 AM Kent Gibson wrote: > > In gpiochip_setup_dev() the call to gpiolib_cdev_register() indirectly > calls device_add(). This is still required for the sysfs even when > CONFIG_GPIO_CDEV is not selected in the build. > > Replace the stubbed functions in gpi

[PATCH] gpiolib: fix sysfs when cdev is not selected

2020-11-05 Thread Kent Gibson
In gpiochip_setup_dev() the call to gpiolib_cdev_register() indirectly calls device_add(). This is still required for the sysfs even when CONFIG_GPIO_CDEV is not selected in the build. Replace the stubbed functions in gpiolib-cdev.h with macros in gpiolib.c that perform the required device_add()