mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] irqchip: digicolor: move digicolor_set_gc to init section
@ 2015-03-22  7:39 Baruch Siach
  2015-03-23 10:14 ` Jason Cooper
  0 siblings, 1 reply; 2+ messages in thread
From: Baruch Siach @ 2015-03-22  7:39 UTC (permalink / raw)
  To: Thomas Gleixner, Jason Cooper; +Cc: linux-kernel, Baruch Siach

The digicolor_set_gc() routine is only called from __init annotated
digicolor_of_init(). Annotate digicolor_set_gc() with __init as well to save a
few bytes at run time.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
 drivers/irqchip/irq-digicolor.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/irqchip/irq-digicolor.c b/drivers/irqchip/irq-digicolor.c
index 930a2a2fac7f..3cbc658afe27 100644
--- a/drivers/irqchip/irq-digicolor.c
+++ b/drivers/irqchip/irq-digicolor.c
@@ -55,8 +55,8 @@ static void __exception_irq_entry digicolor_handle_irq(struct pt_regs *regs)
 	} while (1);
 }
 
-static void digicolor_set_gc(void __iomem *reg_base, unsigned irq_base,
-			     unsigned en_reg, unsigned ack_reg)
+static void __init digicolor_set_gc(void __iomem *reg_base, unsigned irq_base,
+				    unsigned en_reg, unsigned ack_reg)
 {
 	struct irq_chip_generic *gc;
 
-- 
2.1.4


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] irqchip: digicolor: move digicolor_set_gc to init section
  2015-03-22  7:39 [PATCH] irqchip: digicolor: move digicolor_set_gc to init section Baruch Siach
@ 2015-03-23 10:14 ` Jason Cooper
  0 siblings, 0 replies; 2+ messages in thread
From: Jason Cooper @ 2015-03-23 10:14 UTC (permalink / raw)
  To: Baruch Siach; +Cc: Thomas Gleixner, linux-kernel

On Sun, Mar 22, 2015 at 09:39:45AM +0200, Baruch Siach wrote:
> The digicolor_set_gc() routine is only called from __init annotated
> digicolor_of_init(). Annotate digicolor_set_gc() with __init as well to save a
> few bytes at run time.
> 
> Signed-off-by: Baruch Siach <baruch@tkos.co.il>
> ---
>  drivers/irqchip/irq-digicolor.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Applied to irqchip/core.

thx,

Jason.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-03-23 10:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-22  7:39 [PATCH] irqchip: digicolor: move digicolor_set_gc to init section Baruch Siach
2015-03-23 10:14 ` Jason Cooper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®