Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: ti_am335x_tscadc: Use PLATFORM_DEVID_AUTO while registering mfd cells

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>

authored by

Vignesh R and committed by
Lee Jones
b40ee006 65102238

+3 -2
+3 -2
drivers/mfd/ti_am335x_tscadc.c
··· 264 264 cell->pdata_size = sizeof(tscadc); 265 265 } 266 266 267 - err = mfd_add_devices(&pdev->dev, pdev->id, tscadc->cells, 268 - tscadc->used_cells, NULL, 0, NULL); 267 + err = mfd_add_devices(&pdev->dev, PLATFORM_DEVID_AUTO, 268 + tscadc->cells, tscadc->used_cells, NULL, 269 + 0, NULL); 269 270 if (err < 0) 270 271 goto err_disable_clk; 271 272