diff options
author | Kent Gibson <warthog618@gmail.com> | 2020-11-05 18:40:49 +0800 |
---|---|---|
committer | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2020-11-05 15:35:40 +0100 |
commit | 1f5eb8b17f02d216703ee56e4c3115f592b060fb (patch) | |
tree | f88cceed309ff11b4ca16d68d2f890228fc862a0 /net/bpf | |
parent | 560b6ac37a87fcb78d580437e3e0bc2b6b5b0295 (diff) |
gpiolib: fix sysfs when cdev is not selected
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() and device_del() when
CONFIG_GPIO_CDEV is not selected.
Fixes: d143493c01b7 (gpiolib: make cdev a build option)
Reported-by: Nicolas Schichan <nschichan@freebox.fr>
Signed-off-by: Kent Gibson <warthog618@gmail.com>
Tested-by: Nicolas Schichan <nschichan@freebox.fr>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Diffstat (limited to 'net/bpf')
0 files changed, 0 insertions, 0 deletions