Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Revert "i2c: boardinfo: Annotate code used in init phase only"

This reverts commit 1a2b423be6a89dd07d5fc27ea042be68697a6a49 because we
got a regression report and need time to find out the details.

Reported-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Closes: https://lore.kernel.org/r/29ec0082-4dd4-4120-acd2-44b35b4b9487@oss.qualcomm.com
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>

+3 -3
+2 -2
drivers/i2c/i2c-boardinfo.c
··· 22 22 LIST_HEAD(__i2c_board_list); 23 23 EXPORT_SYMBOL_GPL(__i2c_board_list); 24 24 25 - int __i2c_first_dynamic_bus_num __ro_after_init; 25 + int __i2c_first_dynamic_bus_num; 26 26 EXPORT_SYMBOL_GPL(__i2c_first_dynamic_bus_num); 27 27 28 28 ··· 48 48 * The board info passed can safely be __initdata, but be careful of embedded 49 49 * pointers (for platform_data, functions, etc) since that won't be copied. 50 50 */ 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) 52 52 { 53 53 int status; 54 54
+1 -1
include/linux/i2c.h
··· 499 499 * Modules for add-on boards must use other calls. 500 500 */ 501 501 #ifdef CONFIG_I2C_BOARDINFO 502 - int __init 502 + int 503 503 i2c_register_board_info(int busnum, struct i2c_board_info const *info, 504 504 unsigned n); 505 505 #else