public inbox for linux-watchdog@vger.kernel.org
 help / color / mirror / Atom feed
From: Lee Jones <lee.jones@linaro.org>
To: Pratyush Anand <panand@redhat.com>
Cc: linux-watchdog@vger.kernel.org, dyoung@redhat.com,
	dzickus@redhat.com, David Paris <david.paris@st.com>,
	kernel@stlinux.com
Subject: Re: [PATCH 10/37] watchdog: st_lpc: Fix parent of watchdog_device
Date: Tue, 18 Aug 2015 07:38:34 +0100	[thread overview]
Message-ID: <20150818063834.GB6180@x1> (raw)
In-Reply-To: <4d95204cc2d56673a9dcddf96ee6d6701fe92ecd.1439524806.git.panand@redhat.com>

On Tue, 18 Aug 2015, Pratyush Anand wrote:

> Fix parent of watchdog_device so that /sys/class/watchdog/watchdogn/device
> is populated.
> 
> cc: David Paris <david.paris@st.com>
> cc: Lee Jones <lee.jones@linaro.org>
> Signed-off-by: Pratyush Anand <panand@redhat.com>
> ---
>  drivers/watchdog/st_lpc_wdt.c | 1 +
>  1 file changed, 1 insertion(+)

[Cc'ing the ST list, so they can have their say]

Looks reasonable.  At least, it's what most of the other drivers do.

Acked-by: Lee Jones <lee.jones@linaro.org>

> diff --git a/drivers/watchdog/st_lpc_wdt.c b/drivers/watchdog/st_lpc_wdt.c
> index 6785afdc0fca..14e9badf2bfa 100644
> --- a/drivers/watchdog/st_lpc_wdt.c
> +++ b/drivers/watchdog/st_lpc_wdt.c
> @@ -241,6 +241,7 @@ static int st_wdog_probe(struct platform_device *pdev)
>  		return -EINVAL;
>  	}
>  	st_wdog_dev.max_timeout = 0xFFFFFFFF / st_wdog->clkrate;
> +	st_wdog_dev.parent = &pdev->dev;
>  
>  	ret = clk_prepare_enable(clk);
>  	if (ret) {

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

  reply	other threads:[~2015-08-18  6:38 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-18  4:47 [PATCH 00/37] watchdog: Fix parent of watchdog devices Pratyush Anand
2015-08-18  4:47 ` [PATCH 01/37] mei: wd: Fix parent of watchdog_device Pratyush Anand
2015-08-18  4:47 ` [PATCH 02/37] watchdog: wm8350: " Pratyush Anand
2015-08-18  4:47 ` [PATCH 03/37] watchdog: wm831x: " Pratyush Anand
2015-08-18  4:47 ` [PATCH 04/37] watchdog: via: " Pratyush Anand
2015-08-18  4:47 ` [PATCH 05/37] watchdog: ux500: " Pratyush Anand
2015-08-18  4:47 ` [PATCH 06/37] watchdog: txx9wdt: " Pratyush Anand
2015-08-18  4:47 ` [PATCH 07/37] watchdog: twl4030: " Pratyush Anand
2015-08-18  4:47 ` [PATCH 08/37] watchdog: tegra: " Pratyush Anand
2015-08-18  4:47 ` [PATCH 09/37] watchdog: stmp3xxx_rtc: " Pratyush Anand
2015-08-18  4:47 ` [PATCH 10/37] watchdog: st_lpc: " Pratyush Anand
2015-08-18  6:38   ` Lee Jones [this message]
2015-08-18  4:47 ` [PATCH 11/37] watchdog: sp805: " Pratyush Anand
2015-08-18  6:41   ` Viresh Kumar
2015-08-18  4:47 ` [PATCH 12/37] watchdog: sirfsoc: " Pratyush Anand
2015-08-18  4:47 ` [PATCH 13/37] watchdog: sh: " Pratyush Anand
2015-08-18  4:47 ` [PATCH 14/37] watchdog: s3c2410: " Pratyush Anand
2015-08-18  4:47 ` [PATCH 15/37] watchdog: rt2880: " Pratyush Anand
2015-08-18  4:47 ` [PATCH 16/37] watchdog: retu: " Pratyush Anand
2015-08-18  4:47 ` [PATCH 17/37] watchdog: qcom: " Pratyush Anand
2015-08-18  4:47 ` [PATCH 18/37] watchdog: pnx4008: " Pratyush Anand
2015-08-18  4:47 ` [PATCH 19/37] watchdog: orion: " Pratyush Anand
2015-08-18  4:47 ` [PATCH 20/37] watchdog: omap: " Pratyush Anand
2015-08-18  4:47 ` [PATCH 21/37] watchdog: menf21bmc: " Pratyush Anand
2015-08-18  4:47 ` [PATCH 22/37] watchdog: mena21: " Pratyush Anand
2015-08-18  6:48   ` Johannes Thumshirn
2015-08-18  4:47 ` [PATCH 23/37] watchdog: jz4740: " Pratyush Anand
2015-08-18  4:47 ` [PATCH 24/37] watchdog: intel-mid: " Pratyush Anand
2015-08-20 18:24   ` David Cohen
2015-08-18  4:47 ` [PATCH 25/37] watchdog: ie6xx: " Pratyush Anand
2015-08-18  4:47 ` [PATCH 26/37] watchdog: gpio: " Pratyush Anand
2015-08-18  4:48 ` [PATCH 27/37] watchdog: ep93xx: " Pratyush Anand
2015-08-18  4:48 ` [PATCH 28/37] watchdog: digicolor: " Pratyush Anand
2015-08-18  5:41   ` Baruch Siach
2015-08-18  6:03     ` Pratyush Anand
2015-08-18  4:48 ` [PATCH 29/37] watchdog: davinci: " Pratyush Anand
2015-08-18  4:48 ` [PATCH 30/37] watchdog: da9063: " Pratyush Anand
2015-08-18  4:48 ` [PATCH 31/37] watchdog: da9062: " Pratyush Anand
2015-08-18  4:48 ` [PATCH 32/37] watchdog: da9055: " Pratyush Anand
2015-08-18  4:48 ` [PATCH 33/37] watchdog: da9052: " Pratyush Anand
2015-08-18  4:48 ` [PATCH 34/37] watchdog: coh901327: " Pratyush Anand
2015-08-18  4:48 ` [PATCH 35/37] watchdog: bcm_kona: " Pratyush Anand
2015-08-18  4:48 ` [PATCH 36/37] watchdog: bcm47xx: " Pratyush Anand
2015-08-18  4:48 ` [PATCH 37/37] watchdog: bcm2835: " Pratyush Anand
2015-08-18 20:25   ` Lubomir Rintel
2015-08-18 15:48 ` [PATCH 00/37] watchdog: Fix parent of watchdog devices Guenter Roeck
2015-08-18 16:39   ` Pratyush Anand

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=20150818063834.GB6180@x1 \
    --to=lee.jones@linaro.org \
    --cc=david.paris@st.com \
    --cc=dyoung@redhat.com \
    --cc=dzickus@redhat.com \
    --cc=kernel@stlinux.com \
    --cc=linux-watchdog@vger.kernel.org \
    --cc=panand@redhat.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