Skip to content

Commit a8482d2

Browse files
author
Wolfram Sang
committed
Revert "i2c: boardinfo: Annotate code used in init phase only"
This reverts commit 1a2b423 because we got a regression report and need time to find out the details. Reported-by: Konrad Dybcio <[email protected]> Closes: https://lore.kernel.org/r/[email protected] Signed-off-by: Wolfram Sang <[email protected]>
1 parent 98906f9 commit a8482d2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

drivers/i2c/i2c-boardinfo.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ EXPORT_SYMBOL_GPL(__i2c_board_lock);
2222
LIST_HEAD(__i2c_board_list);
2323
EXPORT_SYMBOL_GPL(__i2c_board_list);
2424

25-
int __i2c_first_dynamic_bus_num __ro_after_init;
25+
int __i2c_first_dynamic_bus_num;
2626
EXPORT_SYMBOL_GPL(__i2c_first_dynamic_bus_num);
2727

2828

@@ -48,7 +48,7 @@ EXPORT_SYMBOL_GPL(__i2c_first_dynamic_bus_num);
4848
* The board info passed can safely be __initdata, but be careful of embedded
4949
* pointers (for platform_data, functions, etc) since that won't be copied.
5050
*/
51-
int __init i2c_register_board_info(int busnum, struct i2c_board_info const *info, unsigned len)
51+
int i2c_register_board_info(int busnum, struct i2c_board_info const *info, unsigned len)
5252
{
5353
int status;
5454

include/linux/i2c.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ static inline struct i2c_client *i2c_verify_client(struct device *dev)
499499
* Modules for add-on boards must use other calls.
500500
*/
501501
#ifdef CONFIG_I2C_BOARDINFO
502-
int __init
502+
int
503503
i2c_register_board_info(int busnum, struct i2c_board_info const *info,
504504
unsigned n);
505505
#else

0 commit comments

Comments
 (0)