Commit 66efd4f2 authored by Federico Vaga's avatar Federico Vaga

sw:drv:adc: use automatic ID assignment for MFD devices

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 8f291ed7
......@@ -8,8 +8,6 @@
#include <linux/platform_device.h>
#include <linux/mfd/core.h>
static int mfd_id;
enum wrtd_s150a_dev_offsets {
WRTD_S150A_FA100_MEM_START = 0x00002000,
WRTD_S150A_FA100_MEM_END = 0x00003A00,
......@@ -103,7 +101,7 @@ static int wrtd_s150a_probe(struct platform_device *pdev)
* to give the first one as input
*/
return mfd_add_devices(&pdev->dev, mfd_id++,
return mfd_add_devices(&pdev->dev, PLATFORM_DEVID_AUTO,
wrtd_s150a_mfd_devs,
ARRAY_SIZE(wrtd_s150a_mfd_devs),
rmem, irq, NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment