summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx31/i2c-imx31.c
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2022-12-03 16:15:20 +0000
committerAidan MacDonald <amachronic@protonmail.com>2023-01-12 06:33:50 -0500
commit7e5fc4076aa82ad329aad280e938cdffbb0422e8 (patch)
treedcbafbfc823a9d7226337fd2dbcbccfb4021f372 /firmware/target/arm/imx31/i2c-imx31.c
parent39439f69094225380af1714e52a5ff145612e70e (diff)
downloadrockbox-7e5fc4076aa82ad329aad280e938cdffbb0422e8.tar.gz
rockbox-7e5fc4076aa82ad329aad280e938cdffbb0422e8.zip
Add INIT_ATTR to i2c_init()
It's usually only called from init() in main.c, so this is safe. There is one more call in system-dm320.c from system_init(), but that's also "safe". I don't know if it's okay to call i2c_init() twice, but presumably it works... Change-Id: I9c1cd918d162d9955f7cf03209e836cbd5e30c57
Diffstat (limited to 'firmware/target/arm/imx31/i2c-imx31.c')
-rw-r--r--firmware/target/arm/imx31/i2c-imx31.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/imx31/i2c-imx31.c b/firmware/target/arm/imx31/i2c-imx31.c
index 972c7d465b..ce5e4cc8f8 100644
--- a/firmware/target/arm/imx31/i2c-imx31.c
+++ b/firmware/target/arm/imx31/i2c-imx31.c
@@ -367,7 +367,7 @@ int i2c_write(struct i2c_node *node, const unsigned char *data,
367 return -1; 367 return -1;
368} 368}
369 369
370void INIT_ATTR i2c_init(void) 370void i2c_init(void)
371{ 371{
372 /* Do one-time inits for each module that will be used - leave 372 /* Do one-time inits for each module that will be used - leave
373 * module disabled and unclocked until something wants it. */ 373 * module disabled and unclocked until something wants it. */