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
This commit is contained in:
Aidan MacDonald 2022-12-03 16:15:20 +00:00
parent 39439f6909
commit 7e5fc4076a
10 changed files with 10 additions and 10 deletions

View file

@ -27,7 +27,7 @@
#define I2C_FREQ_100K 100000
#define I2C_FREQ_400K 400000
extern void i2c_init(void);
extern void i2c_init(void) INIT_ATTR;
/* Configure the I2C controller prior to use.
*