mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Markus Pargmann <mpa@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH] mfd: mc34704: Add DT support
Date: Tue, 29 Jul 2014 08:22:19 +0200	[thread overview]
Message-ID: <20140729062219.GD23235@pengutronix.de> (raw)
In-Reply-To: <1406579067-3866-1-git-send-email-mpa@pengutronix.de>

On Mon, Jul 28, 2014 at 10:24:27PM +0200, Markus Pargmann wrote:
> Add a compatible to this driver so it can be added through devicetree.
> 
> Signed-off-by: Markus Pargmann <mpa@pengutronix.de>

Applied, thanks

Sascha

> ---
>  drivers/mfd/mc34704.c | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/drivers/mfd/mc34704.c b/drivers/mfd/mc34704.c
> index 9afab07a2df5..3dc85f5474dd 100644
> --- a/drivers/mfd/mc34704.c
> +++ b/drivers/mfd/mc34704.c
> @@ -123,9 +123,15 @@ static int mc34704_probe(struct device_d *dev)
>  	return 0;
>  }
>  
> +static __maybe_unused struct of_device_id mc34704_dt_ids[] = {
> +	{ .compatible = "fsl,mc34704", },
> +	{ }
> +};
> +
>  static struct driver_d mc34704_driver = {
>  	.name  = DRIVERNAME,
>  	.probe = mc34704_probe,
> +	.of_compatible = DRV_OF_COMPAT(mc34704_dt_ids),
>  };
>  
>  static int mc34704_init(void)
> -- 
> 2.0.1
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

      reply	other threads:[~2014-07-29  6:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-28 20:24 Markus Pargmann
2014-07-29  6:22 ` Sascha Hauer [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=20140729062219.GD23235@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=mpa@pengutronix.de \
    /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