diff mbox

i2c: busses: xgene-slimpro: fix incorrect __init declation for probe

Message ID 1433288589-10794-1-git-send-email-fkan@apm.com
State Accepted
Headers show

Commit Message

Feng Kan June 2, 2015, 11:43 p.m. UTC
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 <fkan@apm.com>
---
 drivers/i2c/busses/i2c-xgene-slimpro.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Wolfram Sang June 10, 2015, 1:18 p.m. UTC | #1
On Tue, Jun 02, 2015 at 04:43:09PM -0700, Feng Kan wrote:
> 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 <fkan@apm.com>

Applied to for-next, thanks!
diff mbox

Patch

diff --git a/drivers/i2c/busses/i2c-xgene-slimpro.c b/drivers/i2c/busses/i2c-xgene-slimpro.c
index 0b33aa2e..dcca707 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;