From d8453403948cbe2bcfce810d82e1afcc501c3c71 Mon Sep 17 00:00:00 2001 From: Feng Kan Date: Tue, 2 Jun 2015 16:43:09 -0700 Subject: [PATCH] i2c: busses: xgene-slimpro: fix incorrect __init declation for probe Fix section mismatch error during kernel build for xgene_slimpro_i2c_probe function. It was incorrectly defined with __init declaration. Signed-off-by: Feng Kan Signed-off-by: Wolfram Sang --- drivers/i2c/busses/i2c-xgene-slimpro.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-xgene-slimpro.c b/drivers/i2c/busses/i2c-xgene-slimpro.c index 0b33aa2e6730..dcca7076231e 100644 --- a/drivers/i2c/busses/i2c-xgene-slimpro.c +++ b/drivers/i2c/busses/i2c-xgene-slimpro.c @@ -377,7 +377,7 @@ static struct i2c_algorithm xgene_slimpro_i2c_algorithm = { .functionality = xgene_slimpro_i2c_func, }; -static int __init xgene_slimpro_i2c_probe(struct platform_device *pdev) +static int xgene_slimpro_i2c_probe(struct platform_device *pdev) { struct slimpro_i2c_dev *ctx; struct i2c_adapter *adapter; -- 2.39.5