lkml.org 
[lkml]   [2026]   [Jun]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/3] memory: fsl_ifc: Switch to modern devm and platform IRQ APIs
Date
Convert the Freescale IFC controller driver from legacy OF-specific
APIs to modern platform-device and devm-based equivalents. This
eliminates manual resource tracking in error paths and remove(),
simplifying the driver and reducing LoC by ~40%.

Patch 1 replaces irq_of_parse_and_map() with platform_get_irq() /
platform_get_irq_optional() and fixes unconditional free_irq() calls
on the optional NAND IRQ.
Patch 2 replaces of_iomap() with devm_platform_ioremap_resource(),
dropping the manual iounmap in remove/error paths and fixing a
missing free_irq on the main IRQ request_irq failure.
Patch 3 switches from request_irq to devm_request_irq, removing the
error-path labels entirely and reducing remove() to just
of_platform_depopulate.

Rosen Penev (3):
memory: fsl_ifc: Fix optional NAND IRQ handling and migrate to
platform IRQ API
memory: fsl_ifc: Use devm_platform_ioremap_resource and fix error
paths
memory: fsl_ifc: Use devm_request_irq and simplify remove

drivers/memory/fsl_ifc.c | 68 ++++++++++++----------------------------
1 file changed, 20 insertions(+), 48 deletions(-)

--
2.54.0


\
 
 \ /
  Last update: 2026-06-04 06:30    [W:0.080 / U:2.035 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog