Skip to content

Commit 3dd7b81

Browse files
committed
Merge tag 'i2c-for-6.18-rc1-hotfix' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux
Pull i2c fix from Wolfram Sang: "One revert because of a regression in the I2C core which has sadly not showed up during its time in -next" * tag 'i2c-for-6.18-rc1-hotfix' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux: Revert "i2c: boardinfo: Annotate code used in init phase only"
2 parents 8765f46 + a8482d2 commit 3dd7b81

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)