Xilinx: ARM: SWDT: fixed driver crash when interrupt not specified.
commitb5840c2481e55e3c517fa1ea9f804bfabbb8caad
authorBryce Kellogg <bryce.kellogg@xilinx.com>
Mon, 30 Jul 2012 22:28:39 +0000 (30 15:28 -0700)
committerJohn Linn <john.linn@xilinx.com>
Tue, 31 Jul 2012 00:30:48 +0000 (30 17:30 -0700)
tree09b162ca52b175fe96a87c5d71c8f76c3a55a511
parente434255787ee91325a1bb02184fed673a6b73d75
Xilinx: ARM: SWDT: fixed driver crash when interrupt not specified.

Previously the driver was not checking if the optional interrupt
parameters were in the devicetree and was trying to register
an interrupt handler no matter what. The driver has been changed
to only register an interrupt handler if the interrupt information
is present.

Signed-off-by: Bryce Kellogg <bryce.kellogg@xilinx.com>
drivers/watchdog/xilinx_wdtps.c