dma: misc: remove deprecated IRQF_DISABLED
PATCH 1/1 dma: misc: remove deprecated IRQF_DISABLED
This patch proposes to remove the use of the IRQF_DISABLED flag
It's a NOOP since 2.6.35 and it will be removed one day.
--- drivers/dma/amba-pl08x.c | 3 +-- drivers/dma/k3dma.c | 2 +- drivers/dma/mmp_pdma.c | 4 ++-- drivers/dma/mmp_tdma.c | 4 ++-- drivers/dma/sh/shdmac.c | 4 ++-- 5 files changed, 8 insertions(+), 9 deletions(-)
drivers/dma/amba-pl08x.c +1 -2
@@ -2133,8 +2133,7 @@ static int pl08x_probe(struct amba_device *adev, const struct amba_id *id)writel (0x000000FF , pl08x->base +PL080_ERR_CLEAR );writel (0x000000FF , pl08x->base +PL080_TC_CLEAR ); - ret =request_irq (adev->irq[0 ], pl08x_irq,IRQF_DISABLED , -DRIVER_NAME , pl08x); + ret =request_irq (adev->irq[0 ], pl08x_irq,0 ,DRIVER_NAME , pl08x);if (ret) {dev_err (&adev->dev,"%s failed to request interrupt %d\n" , __func__, adev->irq[0 ]);
drivers/dma/k3dma.c +1 -1
@@ -693,7 +693,7 @@ static int k3_dma_probe(struct platform_device *op) irq =platform_get_irq (op,0 ); ret =devm_request_irq (&op->dev, irq, - k3_dma_int_handler,IRQF_DISABLED ,DRIVER_NAME , d); + k3_dma_int_handler,0 ,DRIVER_NAME , d);if (ret)return ret;
drivers/dma/mmp_pdma.c +2 -2
@@ -863,7 +863,7 @@ static int mmp_pdma_chan_init(struct mmp_pdma_device *pdev,if (irq) { ret =devm_request_irq (pdev->dev, irq, - mmp_pdma_chan_handler,IRQF_DISABLED ,"pdma" , phy); + mmp_pdma_chan_handler,0 ,"pdma" , phy);if (ret) {dev_err (pdev->dev,"channel request irq fail!\n" );return ret;
@@ -970,7 +970,7 @@ static int mmp_pdma_probe(struct platform_device *op)/* all chan share one irq, demux inside */ irq =platform_get_irq (op,0 ); ret =devm_request_irq (pdev->dev, irq, - mmp_pdma_int_handler,IRQF_DISABLED ,"pdma" , pdev); + mmp_pdma_int_handler,0 ,"pdma" , pdev);if (ret)return ret; }
drivers/dma/mmp_tdma.c +2 -2
@@ -324,7 +324,7 @@ static int mmp_tdma_alloc_chan_resources(struct dma_chan *chan)if (tdmac->irq) { ret =devm_request_irq (tdmac->dev, tdmac->irq, - mmp_tdma_chan_handler,IRQF_DISABLED ,"tdma" , tdmac); + mmp_tdma_chan_handler,0 ,"tdma" , tdmac);if (ret)return ret; }
@@ -559,7 +559,7 @@ static int mmp_tdma_probe(struct platform_device *pdev)if (irq_num != chan_num) { irq =platform_get_irq (pdev,0 ); ret =devm_request_irq (&pdev->dev, irq, - mmp_tdma_int_handler,IRQF_DISABLED ,"tdma" , tdev); + mmp_tdma_int_handler,0 ,"tdma" , tdev);if (ret)return ret; }
drivers/dma/sh/shdmac.c +2 -2
@@ -685,7 +685,7 @@ MODULE_DEVICE_TABLE(of, sh_dmae_of_match);static int sh_dmae_probe (struct platform_device *pdev) {const struct sh_dmae_pdata *pdata; -unsigned long irqflags =IRQF_DISABLED , +unsigned long irqflags =0 , chan_flag[SH_DMAE_MAX_CHANNELS ] = {};int errirq, chan_irq[SH_DMAE_MAX_CHANNELS ];int err, i, irq_cnt =0 , irqres =0 , irq_cap =0 ;
@@ -838,7 +838,7 @@ static int sh_dmae_probe(struct platform_device *pdev) IORESOURCE_IRQ_SHAREABLE) chan_flag[irq_cnt] =IRQF_SHARED ; else - chan_flag[irq_cnt] =IRQF_DISABLED ; + chan_flag[irq_cnt] =0 ;dev_dbg (&pdev->dev,"Found IRQ %d for channel %d\n" , i, irq_cnt);
Signature · 1 line
1.8.1.2
Vinod Koul
AppliedQuoted 3 lines · Michael Opdenacker
This patch proposes to remove the use of the
IRQF_DISABLEDflagIt's a NOOP since 2.6.35 and it will be removed one day.
Applied, thanks. Title shouldnt have misc as it doesnt convey anything.
~Vinod
Hi Vinod,
Quoted 5 lines · Vinod Koul
Quoted 3 lines · Michael Opdenacker
This patch proposes to remove the use of the
IRQF_DISABLEDflagIt's a NOOP since 2.6.35 and it will be removed one day.
Applied, thanks. Title shouldnt have misc as it doesnt convey anything.
Thanks!
Indeed, I sent separate patches for files which had different maintainers, and grouped the patches for files which shared the same maintainer information.
I put "misc" to avoid suggesting that the patch is for everything under drivers/dma/, which is not the case. Wouldn't it have been confusing otherwise?
Thanks again,
Michael.
Signature · 4 lines
Michael Opdenacker, CEO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com +33 484 258 098
Quoted 10 lines · Michael Opdenacker
Hi Vinod,
Quoted 5 lines · Vinod Koul
Quoted 3 lines · Michael Opdenacker
This patch proposes to remove the use of the
IRQF_DISABLEDflagIt's a NOOP since 2.6.35 and it will be removed one day.
Applied, thanks. Title shouldnt have misc as it doesnt convey anything.
Thanks!
Quoted 7 lines
Indeed, I sent separate patches for files which had different maintainers, and grouped the patches for files which shared the same maintainer information.
I put "misc" to avoid suggesting that the patch is for everything under
drivers/dma/, which is not the case. Wouldn't it have been confusing otherwise?
dmaengine: convert drivers to ....
would have been right too as you are taregtting a subsystem as a whole...
--
~Vinod