powerpc/8xx: export 'cpm_setbrg' for modules
authorRandy Dunlap <rdunlap@infradead.org>
Fri, 22 Jan 2021 01:08:19 +0000 (17:08 -0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 2 May 2022 13:02:15 +0000 (23:02 +1000)
Fix missing export for a loadable module build:

ERROR: modpost: "cpm_setbrg" [drivers/tty/serial/cpm_uart/cpm_uart.ko] undefined!

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: kernel test robot <lkp@intel.com>
[chleroy: Changed Fixes: tag]
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210122010819.30986-1-rdunlap@infradead.org
arch/powerpc/platforms/8xx/cpm1.c

index c58b6f1..3ef5e9f 100644 (file)
@@ -280,6 +280,7 @@ cpm_setbrg(uint brg, uint rate)
                out_be32(bp, (((BRG_UART_CLK_DIV16 / rate) - 1) << 1) |
                              CPM_BRG_EN | CPM_BRG_DIV16);
 }
+EXPORT_SYMBOL(cpm_setbrg);
 
 struct cpm_ioport16 {
        __be16 dir, par, odr_sor, dat, intr;