]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
watchdog: rt2880_wdt: Remove assignment of dev pointer
authorMatt Redfearn <matt.redfearn@imgtec.com>
Mon, 12 Sep 2016 09:35:12 +0000 (10:35 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Oct 2016 07:45:26 +0000 (03:45 -0400)
commitbfdc15a4f726ff86bf938762324ab3ffde2aebd2
tree81aa5c07f5b354da70ca905d15714b564f3d5fb0
parent8bfe1c78242a333a78674e4bda6e5040ae0b048c
watchdog: rt2880_wdt: Remove assignment of dev pointer

commit df9c692b5618914d4ce7c9e3e011c5683fc16226 upstream.

Commit 0254e953537c ("watchdog: Drop pointer to watchdog device from
struct watchdog_device") removed the dev pointer from struct
watchdog_device, but this driver was still assigning it, leading to a
compilation error:

drivers/watchdog/rt2880_wdt.c: In function ‘rt288x_wdt_probe’:
drivers/watchdog/rt2880_wdt.c:161:16: error: ‘struct watchdog_device’
has no member named ‘dev’
  rt288x_wdt_dev.dev = &pdev->dev;
                ^
scripts/Makefile.build:289: recipe for target
'drivers/watchdog/rt2880_wdt.o' failed

Fix this by removing the assignment.

Fixes: 0254e953537c ("watchdog: Drop pointer to watchdog device ...")
Signed-off-by: Matt Redfearn <matt.redfearn@imgtec.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/watchdog/rt2880_wdt.c