I have written support for rtc ds1343 which uses spi interface through regmap spi and uses the following api devm_regmap_init_spi(spi, &config); during compilation following error occurs drivers/built-in.o: In function `ds1343_probe': >> rtc-ds1343.c:(.text+0x1baf8f): undefined reference to `devm_regmap_init_spi' in the .config file following are the regmap support defined CONFIG_REGMAP=y CONFIG_REGMAP_I2C=m CONFIG_REGMAP_SPI=m CONFIG_REGMAP_MMIO=y CONFIG_REGMAP_IRQ=y the CONFIG_REGMAP is declared even then the error in compilation occurs. i have also attached the config file