This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit ff509c1dca64fb7da3b6490cb92fd0b559488f61
Author: Matteo Golin <[email protected]>
AuthorDate: Sat Jun 20 13:02:24 2026 -0400

    rpi4b/bringup: Use correct CONFIG option for I2C char driver
    
    Change the I2C character device registration to depend on the correct
    CONFIG option for enabling character drivers.
    
    Signed-off-by: Matteo Golin <[email protected]>
---
 boards/arm64/bcm2711/raspberrypi-4b/src/rpi4b_bringup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/boards/arm64/bcm2711/raspberrypi-4b/src/rpi4b_bringup.c 
b/boards/arm64/bcm2711/raspberrypi-4b/src/rpi4b_bringup.c
index 8742d588047..4f2299d2aed 100644
--- a/boards/arm64/bcm2711/raspberrypi-4b/src/rpi4b_bringup.c
+++ b/boards/arm64/bcm2711/raspberrypi-4b/src/rpi4b_bringup.c
@@ -75,7 +75,7 @@ int rpi4b_bringup(void)
 
   /* Initialize I2C character drivers. */
 
-#if defined(CONFIG_BCM2711_I2C)
+#if defined(CONFIG_BCM2711_I2C_DRIVER)
 
 #if defined(CONFIG_BCM2711_I2C0)
   ret = bcm2711_i2cdev_initialize(0);

Reply via email to