Catégorie : Linux

gpio: vf610: Use irq_set_handler_locked

Author: Thomas Gleixner <tglx@linutronix.de> Use irq_set_handler_locked() as it avoids a redundant lookup of the irq descriptor. Search and replacement was done with coccinelle: Signed-off-by: Thomas Gleixner Cc: Julia Lawall Cc: Linus Walleij Cc: linux-gpio@vger.kernel.org — drivers/gpio/gpio-vf610.c | 4 ++– 1 file changed, 2 insertions(+), 2 deletions(-)   diff –git a/drivers/gpio/gpio-vf610.c b/drivers/gpio/gpio-vf610.c index 3d5714d..7a6640b 100644 — …

Lire la suite

net/mlx4_en: Use access helper irq_data_get_affinity_mask()

Author: Thomas Gleixner <tglx@linutronix.de> This is a preparatory patch for moving irq_data struct members. Search and replace was done with coccinelle Signed-off-by: Thomas Gleixner Cc: Julia Lawall Cc: Jiang Liu Cc: Amir Vadai — drivers/net/ethernet/mellanox/mlx4/en_rx.c | 6 ++++– 1 file changed, 4 insertions(+), 2 deletions(-)   diff –git a/drivers/net/ethernet/mellanox/mlx4/en_rx.c b/drivers/net/ethernet/mellanox/mlx4/en_rx.c index 4402a1e..4c7de8c 100644 — a/drivers/net/ethernet/mellanox/mlx4/en_rx.c …

Lire la suite

genirq: Remove irq argument from irq flow handlers

Author: Thomas Gleixner <tglx@linutronix.de> Most interrupt flow handlers do not use the irq argument. Those few which use it can retrieve the irq number from the irq descriptor. Remove the argument. Search and replace was done with coccinelle and some extra helper scripts around it. Thanks to Julia for her help! Signed-off-by: Thomas Gleixner Cc: …

Lire la suite

soc: dove: Use irq_desc_get_xxx() to avoid redundant lookup of irq_desc

Author: Thomas Gleixner <tglx@linutronix.de> Search and replace done with coccinelle Signed-off-by: Thomas Gleixner Cc: Julia Lawall Cc: Jiang Liu — drivers/soc/dove/pmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)   diff –git a/drivers/soc/dove/pmu.c b/drivers/soc/dove/pmu.c index 6792aae..4decb26 100644 — a/drivers/soc/dove/pmu.c +++ b/drivers/soc/dove/pmu.c @@ -224,7 +224,7 @@ static void __pmu_domain_register(struct pmu_domain *domain, /* PMU IRQ …

Lire la suite

soc: dove: Prepare irq handler for irq argument removal

Author: Thomas Gleixner <tglx@linutronix.de> The irq argument of most interrupt flow handlers is unused or merily used instead of a local variable. The handlers which need the irq argument can retrieve the irq number from the irq descriptor. Search and update was done with coccinelle and the invaluable help of Julia Lawall. Signed-off-by: Thomas Gleixner …

Lire la suite

powerpc/cell: Prepare irq handler for irq argument removal

Author: Thomas Gleixner <tglx@linutronix.de> The irq argument of most interrupt flow handlers is unused or merily used instead of a local variable. The handlers which need the irq argument can retrieve the irq number from the irq descriptor. Search and update was done with coccinelle and the invaluable help of Julia Lawall. Signed-off-by: Thomas Gleixner …

Lire la suite

powerpc/85xx: Prepare irq handlers for irq argument removal

Author: Thomas Gleixner <tglx@linutronix.de> The irq argument of most interrupt flow handlers is unused or merily used instead of a local variable. The handlers which need the irq argument can retrieve the irq number from the irq descriptor. Search and update was done with coccinelle and the invaluable help of Julia Lawall. Signed-off-by: Thomas Gleixner …

Lire la suite

powerpc/mpc5121_ads_cpld: Prepare irq handler for irq argument removal

Author: Thomas Gleixner <tglx@linutronix.de> The irq argument of most interrupt flow handlers is unused or merily used instead of a local variable. The handlers which need the irq argument can retrieve the irq number from the irq descriptor. Search and update was done with coccinelle and the invaluable help of Julia Lawall. Signed-off-by: Thomas Gleixner …

Lire la suite

usb: host: drop null test before destroy functions

Author: Julia Lawall <Julia.Lawall@lip6.fr> Remove unneeded NULL test. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ expression x; @@ -if (x != NULL) \(kmem_cache_destroy\|mempool_destroy\|dma_pool_destroy\)(x); @@ expression x; @@ -if (x != NULL) { \(kmem_cache_destroy\|mempool_destroy\|dma_pool_destroy\)(x); x = NULL; -} // Signed-off-by: Julia Lawall Signed-off-by: Greg Kroah-Hartman — drivers/usb/host/fotg210-hcd.c | 12 ++++——– …

Lire la suite

iommu/amd: Drop null test before destroy functions

Author: Julia Lawall <Julia.Lawall@lip6.fr> Remove unneeded NULL test. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ expression x; @@ -if (x != NULL) { \(kmem_cache_destroy\|mempool_destroy\|dma_pool_destroy\)(x); x = NULL; -} // Signed-off-by: Julia Lawall Signed-off-by: Joerg Roedel — drivers/iommu/amd_iommu_init.c | 7 ++—– 1 file changed, 2 insertions(+), 5 deletions(-)   diff …

Lire la suite