staging: most: hdm-dim2: Replace request_irq with devm_request_irq
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Thu, 18 Feb 2016 14:42:00 +0000 (20:12 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Feb 2016 23:02:06 +0000 (15:02 -0800)
commit3eced21a5afbb0f5d4d723d15d25ac9b1b98318c
treebe27df0a4a387ea589094a97b5e233dd651fea20
parentbab469cdb6674cdf03b9243663cbbb8326510b41
staging: most: hdm-dim2: Replace request_irq with devm_request_irq

Devm_ functions allocate memory that is released when a driver
detaches. Replace request_irq with devm_request_irq to get the
interrupt for device which is automatically freed on exit. Remove
corresponding free_irq from probe and remove functions of a platform
device.

Also, remove an unnecessary label.

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/hdm-dim2/dim2_hdm.c