ssb: make ssb_pcmcia_switch_core static
PATCH 1/1 ssb: make ssb_pcmcia_switch_core static
Signed-off-by Rafał Miłecki <[email protected]>
--- drivers/ssb/pcmcia.c | 3 +-- drivers/ssb/ssb_private.h | 7 ------- 2 files changed, 1 insertion(+), 9 deletions(-)
drivers/ssb/pcmcia.c +1 -2
@@ -147,8 +147,7 @@ error:return err; } -int ssb_pcmcia_switch_core (struct ssb_bus *bus, -struct ssb_device *dev) +static int ssb_pcmcia_switch_core (struct ssb_bus *bus,struct ssb_device *dev) {int err;
drivers/ssb/ssb_private.h +0 -7
@@ -85,8 +85,6 @@ static inline int ssb_pci_init(struct ssb_bus *bus)/* pcmcia.c */ #ifdef CONFIG_SSB_PCMCIAHOST -extern int ssb_pcmcia_switch_core (struct ssb_bus *bus, -struct ssb_device *dev);extern int ssb_pcmcia_switch_coreidx (struct ssb_bus *bus,u8 coreidx); extern int ssb_pcmcia_switch_segment(struct ssb_bus *bus,
@@ -98,11 +96,6 @@ extern void ssb_pcmcia_exit(struct ssb_bus *bus);extern int ssb_pcmcia_init (struct ssb_bus *bus);extern const struct ssb_bus_ops ssb_pcmcia_ops;#else /* CONFIG_SSB_PCMCIAHOST */ -static inline int ssb_pcmcia_switch_core (struct ssb_bus *bus, -struct ssb_device *dev) -{ -return 0 ; -}static inline int ssb_pcmcia_switch_coreidx (struct ssb_bus *bus,u8 coreidx) {
Signature · 1 line
1.8.4.5
Quoted 35 lines · On Mon, 21 Sep 2015 09:55:26 +0200 Rafał Miłecki <[email protected]> wrote:
Signed-off-by Rafał Miłecki <[email protected]>--- drivers/ssb/pcmcia.c | 3 +-- drivers/ssb/ssb_private.h | 7 ------- 2 files changed, 1 insertion(+), 9 deletions(-)drivers/ssb/pcmcia.c +1
-2@@ -147,8 +147,7 @@ error:return err; } -int ssb_pcmcia_switch_core (struct ssb_bus *bus, -struct ssb_device *dev) +static int ssb_pcmcia_switch_core (struct ssb_bus *bus,struct ssb_device *dev) {int err;drivers/ssb/ssb_private.h +0
-2@@ -85,8 +85,6 @@ static inline int ssb_pci_init(struct ssb_bus *bus)/* pcmcia.c */ #ifdef CONFIG_SSB_PCMCIAHOST -extern int ssb_pcmcia_switch_core (struct ssb_bus *bus, -struct ssb_device *dev);extern int ssb_pcmcia_switch_coreidx (struct ssb_bus *bus,u8 coreidx); extern int ssb_pcmcia_switch_segment(struct ssb_bus *bus,@@ -98,11 +96,6 @@ extern void ssb_pcmcia_exit(struct ssb_bus *bus);extern int ssb_pcmcia_init (struct ssb_bus *bus);
drivers/ssb/ssb_private.h extern void ssb_pcmcia_exit(struct ssb_bus *bus); · line 101
Quoted 10 lines
drivers/ssb/ssb_private.h +0
-5extern const struct ssb_bus_ops ssb_pcmcia_ops;#else /* CONFIG_SSB_PCMCIAHOST */ -static inline int ssb_pcmcia_switch_core (struct ssb_bus *bus, -struct ssb_device *dev) -{ -return 0 ; -}static inline int ssb_pcmcia_switch_coreidx (struct ssb_bus *bus,u8 coreidx) {
Acked-by Michael Buesch <[email protected]>
Signature · 1 line
Michael
Quoted 1 line · Rafał Miłecki
Signed-off-by Rafał Miłecki <[email protected]>
Thanks, manually applied.
And please, no empty commit logs in the future.
Signature · 1 line
Kalle Valo