diff options
author | Vignesh R <vigneshr@ti.com> | 2018-12-03 13:31:17 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-02-27 10:08:50 +0100 |
commit | 6bdf535f4aafc8f0ca20ec19212e217a2772aa1c (patch) | |
tree | cbb2fedb032671be34230fa612baff8f9fe4efee /drivers | |
parent | d87fa3f7711b82245a6314efe9cd7d54981ef85c (diff) | |
download | linux-stable-6bdf535f4aafc8f0ca20ec19212e217a2772aa1c.tar.gz linux-stable-6bdf535f4aafc8f0ca20ec19212e217a2772aa1c.tar.bz2 linux-stable-6bdf535f4aafc8f0ca20ec19212e217a2772aa1c.zip |
mfd: ti_am335x_tscadc: Use PLATFORM_DEVID_AUTO while registering mfd cells
[ Upstream commit b40ee006fe6a8a25093434e5d394128c356a48f3 ]
Use PLATFORM_DEVID_AUTO to number mfd cells while registering, so that
different instances are uniquely identified. This is required in order
to support registering of multiple instances of same ti_am335x_tscadc IP.
Signed-off-by: Vignesh R <vigneshr@ti.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mfd/ti_am335x_tscadc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/mfd/ti_am335x_tscadc.c b/drivers/mfd/ti_am335x_tscadc.c index 7a30546880a4..fe8d335a4d74 100644 --- a/drivers/mfd/ti_am335x_tscadc.c +++ b/drivers/mfd/ti_am335x_tscadc.c @@ -264,8 +264,9 @@ static int ti_tscadc_probe(struct platform_device *pdev) cell->pdata_size = sizeof(tscadc); } - err = mfd_add_devices(&pdev->dev, pdev->id, tscadc->cells, - tscadc->used_cells, NULL, 0, NULL); + err = mfd_add_devices(&pdev->dev, PLATFORM_DEVID_AUTO, + tscadc->cells, tscadc->used_cells, NULL, + 0, NULL); if (err < 0) goto err_disable_clk; |