macintosh/ams: mark ams_init() static

This is the module init function, which by definition is used only
locally, so mark it static to avoid a warning:

drivers/macintosh/ams/ams-core.c:179:12: error: no previous prototype for 'ams_init' [-Werror=missing-prototypes]

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230810141947.1236730-7-arnd@kernel.org
This commit is contained in:
Arnd Bergmann 2023-08-10 16:19:24 +02:00 committed by Michael Ellerman
parent 506e550a7d
commit cd50430ceb

View File

@ -176,7 +176,7 @@ int ams_sensor_attach(void)
return result;
}
int __init ams_init(void)
static int __init ams_init(void)
{
struct device_node *np;