diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-11-24 13:01:40 -0500 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-01-14 06:37:39 -0500 |
commit | 798e6e321f807c46d81be1572118e031577ea9ab (patch) | |
tree | 5bddac4011f28759a3268f4aa26a39082e675407 /drivers/mfd | |
parent | 3f3d4310bdb083b9331239e1a1bb09e19f763115 (diff) |
mfd: Simplify WM832x subdevice instantiation
All the current WM832x devices have the same set of subdevices so can
just use multiple case statements with a single body.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/wm831x-core.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/mfd/wm831x-core.c b/drivers/mfd/wm831x-core.c index 76cadcf3b1fe..d1b2d534b991 100644 --- a/drivers/mfd/wm831x-core.c +++ b/drivers/mfd/wm831x-core.c | |||
@@ -1610,17 +1610,7 @@ int wm831x_device_init(struct wm831x *wm831x, unsigned long id, int irq) | |||
1610 | break; | 1610 | break; |
1611 | 1611 | ||
1612 | case WM8320: | 1612 | case WM8320: |
1613 | ret = mfd_add_devices(wm831x->dev, -1, | ||
1614 | wm8320_devs, ARRAY_SIZE(wm8320_devs), | ||
1615 | NULL, 0); | ||
1616 | break; | ||
1617 | |||
1618 | case WM8321: | 1613 | case WM8321: |
1619 | ret = mfd_add_devices(wm831x->dev, -1, | ||
1620 | wm8320_devs, ARRAY_SIZE(wm8320_devs), | ||
1621 | NULL, 0); | ||
1622 | break; | ||
1623 | |||
1624 | case WM8325: | 1614 | case WM8325: |
1625 | ret = mfd_add_devices(wm831x->dev, -1, | 1615 | ret = mfd_add_devices(wm831x->dev, -1, |
1626 | wm8320_devs, ARRAY_SIZE(wm8320_devs), | 1616 | wm8320_devs, ARRAY_SIZE(wm8320_devs), |