Skip to content

Commit

Permalink
i2c-iop3xx: Switch to static adapter numbering
Browse files Browse the repository at this point in the history
Update the IOP3xx I2C driver to use i2c_add_numbered_adapter(), so that
later patches can convert boards to using new-style drivers.

Signed-off-by: Martin Michlmayr <tbm@cyrius.com>
Tested-by: Voipio Riku <Riku.Voipio@movial.fi>
Cc: Dan J Williams <dan.j.williams@intel.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
  • Loading branch information
Martin Michlmayr authored and Jean Delvare committed Jul 12, 2007
1 parent 7375cd8 commit 757ba4c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/i2c/busses/i2c-iop3xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,7 @@ iop3xx_i2c_probe(struct platform_device *pdev)
new_adapter->id = I2C_HW_IOP3XX;
new_adapter->owner = THIS_MODULE;
new_adapter->dev.parent = &pdev->dev;
new_adapter->nr = pdev->id;

/*
* Default values...should these come in from board code?
Expand All @@ -508,7 +509,7 @@ iop3xx_i2c_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, new_adapter);
new_adapter->algo_data = adapter_data;

i2c_add_adapter(new_adapter);
i2c_add_numbered_adapter(new_adapter);

return 0;

Expand Down

0 comments on commit 757ba4c

Please sign in to comment.