git: 81de556105b2 - main - linuxkpi: i2c: Add MODULE_DEPEND for iicbus

From: Emmanuel Vadot <manu_at_FreeBSD.org>
Date: Wed, 26 Jan 2022 09:44:11 UTC
The branch main has been updated by manu:

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

commit 81de556105b2fb0f85ece868b2289c53b8c3e6ca
Author:     Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2022-01-26 09:42:20 +0000
Commit:     Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2022-01-26 09:44:07 +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
---
 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)