[PATCH 06/10] mfd add subdevs in 88pm860x
Dmitry Torokhov
dmitry.torokhov at gmail.com
Fri Nov 13 23:50:51 EST 2009
On Fri, Nov 13, 2009 at 04:00:44AM -0500, Haojian Zhuang wrote:
>
> - count = ARRAY_SIZE(pm8607_devs);
> - for (i = 0; i < count; i++) {
> - ret = mfd_add_devices(chip->dev, i, &pm8607_devs[i],
> - 1, NULL, 0);
> - if (ret != 0) {
> - dev_err(chip->dev, "Failed to add subdevs\n");
> - goto out;
> - }
> + mfd_add_devices(chip->dev, 0, ®ulator_devs[0],
> + ARRAY_SIZE(regulator_devs),
> + ®ulator_resources[0], 0);
> +
> + if (pdata && pdata->touch) {
> + mfd_add_devices(chip->dev, 0, &touch_devs[0],
> + ARRAY_SIZE(touch_devs),
> + &touch_resources[0], 0);
Where did error handling go?
--
Dmitry
More information about the linux-arm-kernel
mailing list