Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Mar 2021 14:20:22 GMT
From:      Emmanuel Vadot <manu@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 90cf334642c2 - releng/13.0 - pwm_backlight: Add MODULE_DEPEND on backlight
Message-ID:  <202103021420.122EKMd6067509@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch releng/13.0 has been updated by manu:

URL: https://cgit.FreeBSD.org/src/commit/?id=90cf334642c234675a70721a8b06a7c92c014a8e

commit 90cf334642c234675a70721a8b06a7c92c014a8e
Author:     Brett Mastbergen <brett.mastbergen@gmail.com>
AuthorDate: 2021-02-22 10:28:28 +0000
Commit:     Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2021-03-02 14:19:51 +0000

    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
    
    Approved by:    re (gjb)
    Signed-off-by: Brett Mastbergen <brett.mastbergen@gmail.com>
    MFC after:      3 days
    PR:             253765
    (cherry picked from commit 43d4dfac96f7f8285a27989f315c075d28aadb12)
    (cherry picked from commit 135fa1610fa177bb8c77aab951cfb4395edc249f)
---
 sys/dev/pwm/pwm_backlight.c | 1 +
 1 file changed, 1 insertion(+)

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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202103021420.122EKMd6067509>