pinctrl: microchip-sgpio: add missing select REGMAP_MMIO
authorBenjamin Boortz <bennib@mailbox.org>
Sun, 19 Jul 2026 09:41:46 +0000 (11:41 +0200)
committerLinus Walleij <linusw@kernel.org>
Sat, 25 Jul 2026 09:21:28 +0000 (11:21 +0200)
commit25cb6e9a13123d1039cdc75b446ac52e1ebdc26d
treeb40532bbc905bb0cf215afc182fad24503810a08
parent015b5bcbcb622b32317642be91a7f79aa5413649
pinctrl: microchip-sgpio: add missing select REGMAP_MMIO

The driver calls ocelot_regmap_from_resource() via <linux/mfd/ocelot.h>,
which internally uses devm_regmap_init_mmio() and requires REGMAP_MMIO.
The Kconfig entry does not select REGMAP_MMIO, causing a build failure
when no other driver in the config happens to pull in REGMAP_MMIO:

  include/linux/mfd/ocelot.h:34:24: error: implicit declaration of function 'devm_regmap_init_mmio'

Found by randconfig testing on arm64; tinyconfig reproducer below.

Fixes: 2afbbab45c26 ("pinctrl: microchip-sgpio: update to support regmap")
Cc: stable@vger.kernel.org
Signed-off-by: Benjamin Boortz <bennib@mailbox.org>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Signed-off-by: Linus Walleij <linusw@kernel.org>
drivers/pinctrl/Kconfig