iio: adc: xilinx: Move request_irq before enabling interrupts
authorManish Narani <manish.narani@xilinx.com>
Mon, 23 Jul 2018 15:02:03 +0000 (20:32 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 29 Jul 2018 12:30:35 +0000 (13:30 +0100)
commit2fa03b92b62982c420c9c77a58bda52b96ed8ba4
treef9a9bdfe206877a24e38d9798575baa407ca78ab
parent50e8e9f3096bd4e9ce2f42da11f3824358a826a7
iio: adc: xilinx: Move request_irq before enabling interrupts

Enabling the Interrupts before registering the irq handler is a bad
idea. This patch corrects the same for XADC driver.

Signed-off-by: Manish Narani <manish.narani@xilinx.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/xilinx-xadc-core.c