aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrett Mastbergen <brett.mastbergen@gmail.com>2021-02-22 10:28:28 +0000
committerEmmanuel Vadot <manu@FreeBSD.org>2021-02-24 16:56:26 +0000
commit43d4dfac96f7f8285a27989f315c075d28aadb12 (patch)
treeb7045c07c6c2726d6ade2dca233178c9b01bbe23
parentf7aebfbe5c0ab63dbb3d134d143ccff2c2b278bb (diff)
downloadsrc-43d4dfac96f7f8285a27989f315c075d28aadb12.tar.gz
src-43d4dfac96f7f8285a27989f315c075d28aadb12.zip
pwm_backlight: Add MODULE_DEPEND on backlight
Make the pwm_backlight module depend on backlight, so it has access to the backlight interface symbols. Otherwise you'll get an error like: link_elf: symbol backlight_get_info_desc undefined Signed-off-by: Brett Mastbergen <brett.mastbergen@gmail.com> MFC after: 3 days PR: 253765
-rw-r--r--sys/dev/pwm/pwm_backlight.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/pwm/pwm_backlight.c b/sys/dev/pwm/pwm_backlight.c
index 352a5a02fed5..3a6ec7f61fec 100644
--- a/sys/dev/pwm/pwm_backlight.c
+++ b/sys/dev/pwm/pwm_backlight.c
@@ -308,4 +308,5 @@ devclass_t pwm_backlight_devclass;
DRIVER_MODULE(pwm_backlight, simplebus, pwm_backlight_driver,
pwm_backlight_devclass, 0, 0);
+MODULE_DEPEND(pwm_backlight, backlight, 1, 1, 1);
OFWBUS_PNP_INFO(compat_data);