alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Lee Jones <lee.jones@linaro.org>
To: Inha Song <ideal.song@samsung.com>
Cc: broonie@kernel.org, lgirdwood@gmail.com,
	ckeepax@opensource.wolfsonmicro.com, sameo@linux.intel.com,
	patches@opensource.wolfsonmicro.com,
	linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org
Subject: Re: [alsa-devel] [RESEND PATCH] mfd: wm8994: set mfd id-base for regulator devs creation to avoid conflicts
Date: Tue, 20 Jan 2015 11:30:00 +0000	[thread overview]
Message-ID: <20150120113000.GH13701@x1> (raw)
In-Reply-To: <1420679073-3316-1-git-send-email-ideal.song@samsung.com>

On Thu, 08 Jan 2015, Inha Song wrote:

> After commit: 6e3f62f0793e ("mfd: core: Fix platform-device id generation")
> We must set the id base when register a duplicate name of mfd_cell.
> If not, duplicate filename error was reported.
> 
> - sysfs: cannot create duplicate filename '/devices/.../wm8994-ldo'
> 
> Signed-off-by: Inha Song <ideal.song@samsung.com>
> ---
>  drivers/mfd/wm8994-core.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)

Applied, thanks.

> diff --git a/drivers/mfd/wm8994-core.c b/drivers/mfd/wm8994-core.c
> index e6fab94..47cd3cc 100644
> --- a/drivers/mfd/wm8994-core.c
> +++ b/drivers/mfd/wm8994-core.c
> @@ -36,12 +36,12 @@
>  static const struct mfd_cell wm8994_regulator_devs[] = {
>  	{
>  		.name = "wm8994-ldo",
> -		.id = 1,
> +		.id = 0,
>  		.pm_runtime_no_callbacks = true,
>  	},
>  	{
>  		.name = "wm8994-ldo",
> -		.id = 2,
> +		.id = 1,
>  		.pm_runtime_no_callbacks = true,
>  	},
>  };
> @@ -344,7 +344,7 @@ static int wm8994_device_init(struct wm8994 *wm8994, int irq)
>  	dev_set_drvdata(wm8994->dev, wm8994);
>  
>  	/* Add the on-chip regulators first for bootstrapping */
> -	ret = mfd_add_devices(wm8994->dev, -1,
> +	ret = mfd_add_devices(wm8994->dev, 0,
>  			      wm8994_regulator_devs,
>  			      ARRAY_SIZE(wm8994_regulator_devs),
>  			      NULL, 0, NULL);

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

      parent reply	other threads:[~2015-01-20 11:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-08  1:04 [alsa-devel] [RESEND PATCH] mfd: wm8994: set mfd id-base for regulator devs creation to avoid conflicts Inha Song
2015-01-08  9:33 ` Charles Keepax
2015-01-20 11:30 ` Lee Jones [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150120113000.GH13701@x1 \
    --to=lee.jones@linaro.org \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=ckeepax@opensource.wolfsonmicro.com \
    --cc=ideal.song@samsung.com \
    --cc=lgirdwood@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=patches@opensource.wolfsonmicro.com \
    --cc=sameo@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).