]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit97e8774b6de0e5d9413a32c7d52e27f0174c0bad
treebe27df0a4a387ea589094a97b5e233dd651fea20
parentafc6f7cb8e643cbc8db1adebc2abdae96b699109
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