summaryrefslogtreecommitdiffstats
path: root/drivers/i2c
diff options
context:
space:
mode:
authorFeng Kan <fkan@apm.com>2015-06-02 16:43:09 -0700
committerWolfram Sang <wsa@the-dreams.de>2015-06-10 22:17:34 +0900
commitd8453403948cbe2bcfce810d82e1afcc501c3c71 (patch)
tree8b907a1db3a754547f60ab44b885f01080d3c883 /drivers/i2c
parent41c8d4520461b5134260f3fb9bb56c8455bad610 (diff)
downloadop-kernel-dev-d8453403948cbe2bcfce810d82e1afcc501c3c71.zip
op-kernel-dev-d8453403948cbe2bcfce810d82e1afcc501c3c71.tar.gz
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 <fkan@apm.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/busses/i2c-xgene-slimpro.c2
1 files changed, 1 insertions, 1 deletions
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;
OpenPOWER on IntegriCloud