git: e813d16c0134 - stable/13 - linuxkpi: i2c: Add MODULE_DEPEND for iicbus

From: Emmanuel Vadot <manu_at_FreeBSD.org>
Date: Tue, 21 Jun 2022 15:23:10 UTC
The branch stable/13 has been updated by manu:

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

commit e813d16c0134b83db5ab9b58d951d681d0aeb5b8
Author:     Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2022-01-26 09:42:20 +0000
Commit:     Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2022-06-21 15:13:57 +0000

    linuxkpi: i2c: Add MODULE_DEPEND for iicbus
    
    MFC after:      1 month
    MFC with:       1961a14a4743
    Fixes:  1961a14a4743 ("linuxkpi: Add i2c support")
    Reported by:    GregV
    Sponsored by:   Beckhoff Automation GmbH & Co. KG
    
    (cherry picked from commit 81de556105b2fb0f85ece868b2289c53b8c3e6ca)
---
 sys/compat/linuxkpi/common/src/linux_i2c.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/compat/linuxkpi/common/src/linux_i2c.c b/sys/compat/linuxkpi/common/src/linux_i2c.c
index cd002da49b19..2b68664642da 100644
--- a/sys/compat/linuxkpi/common/src/linux_i2c.c
+++ b/sys/compat/linuxkpi/common/src/linux_i2c.c
@@ -127,6 +127,7 @@ driver_t lkpi_iic_driver = {
 
 DRIVER_MODULE(lkpi_iic, drmn, lkpi_iic_driver, lkpi_iic_devclass, 0, 0);
 DRIVER_MODULE(iicbus, lkpi_iic, iicbus_driver, iicbus_devclass, 0, 0);
+MODULE_DEPEND(linuxkpi, iicbus, IICBUS_MINVER, IICBUS_PREFVER, IICBUS_MAXVER);
 
 static int
 lkpi_i2c_reset(device_t dev, u_char speed, u_char addr, u_char *oldaddr)