Skip to content

Commit

Permalink
i2c: busses: xgene-slimpro: fix incorrect __init declation for probe
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
  • Loading branch information
apmsw authored and Wolfram Sang committed Jun 10, 2015
1 parent 41c8d45 commit d845340
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/i2c/busses/i2c-xgene-slimpro.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d845340

Please sign in to comment.