Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH] bcm47xx_sprom: Fix compilation with ssb/bcma as module
@ 2016-03-08  6:59 Rafał Miłecki
  2016-03-08  8:28 ` Ralf Baechle
  0 siblings, 1 reply; 2+ messages in thread
From: Rafał Miłecki @ 2016-03-08  6:59 UTC (permalink / raw)
  To: linux-mips, Ralf Baechle; +Cc: Hauke Mehrtens, Rafał Miłecki

It was failing due to unknown ssb_arch_register_fallback_sprom or
bcma_arch_register_fallback_sprom with CONFIG_SSB=m or CONFIG_BCMA=m

Fixes: e8a46c88b516 ("MIPS: BCM47xx: Move SPROM driver to drivers/firmware/¨)
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
---
Ralf, this is for mips-for-linux-next. If you happen to rebase your tree, you
may squash this one with e8a46c88b516.
Sorry for the problem.
---
 drivers/firmware/broadcom/bcm47xx_sprom.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/firmware/broadcom/bcm47xx_sprom.c b/drivers/firmware/broadcom/bcm47xx_sprom.c
index 5dfd459..c3d1bf2 100644
--- a/drivers/firmware/broadcom/bcm47xx_sprom.c
+++ b/drivers/firmware/broadcom/bcm47xx_sprom.c
@@ -601,7 +601,7 @@ void bcm47xx_fill_sprom(struct ssb_sprom *sprom, const char *prefix,
 	bcm47xx_sprom_fill_auto(sprom, prefix, fallback);
 }
 
-#if defined(CONFIG_SSB_SPROM)
+#if IS_BUILTIN(CONFIG_SSB) && IS_ENABLED(CONFIG_SSB_SPROM)
 static int bcm47xx_get_sprom_ssb(struct ssb_bus *bus, struct ssb_sprom *out)
 {
 	char prefix[10];
@@ -624,7 +624,7 @@ static int bcm47xx_get_sprom_ssb(struct ssb_bus *bus, struct ssb_sprom *out)
 }
 #endif
 
-#if defined(CONFIG_BCMA)
+#if IS_BUILTIN(CONFIG_BCMA)
 /*
  * Having many NVRAM entries for PCI devices led to repeating prefixes like
  * pci/1/1/ all the time and wasting flash space. So at some point Broadcom
@@ -719,12 +719,12 @@ int bcm47xx_sprom_register_fallbacks(void)
 	if (bcm47xx_sprom_registered)
 		return 0;
 
-#if defined(CONFIG_SSB_SPROM)
+#if IS_BUILTIN(CONFIG_SSB) && IS_ENABLED(CONFIG_SSB_SPROM)
 	if (ssb_arch_register_fallback_sprom(&bcm47xx_get_sprom_ssb))
 		pr_warn("Failed to registered ssb SPROM handler\n");
 #endif
 
-#if defined(CONFIG_BCMA)
+#if IS_BUILTIN(CONFIG_BCMA)
 	if (bcma_arch_register_fallback_sprom(&bcm47xx_get_sprom_bcma))
 		pr_warn("Failed to registered bcma SPROM handler\n");
 #endif
-- 
1.8.4.5

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

* Re: [PATCH] bcm47xx_sprom: Fix compilation with ssb/bcma as module
  2016-03-08  6:59 [PATCH] bcm47xx_sprom: Fix compilation with ssb/bcma as module Rafał Miłecki
@ 2016-03-08  8:28 ` Ralf Baechle
  0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2016-03-08  8:28 UTC (permalink / raw)
  To: Rafał Miłecki; +Cc: linux-mips, Hauke Mehrtens

On Tue, Mar 08, 2016 at 07:59:32AM +0100, Rafał Miłecki wrote:

> It was failing due to unknown ssb_arch_register_fallback_sprom or
> bcma_arch_register_fallback_sprom with CONFIG_SSB=m or CONFIG_BCMA=m
> 
> Fixes: e8a46c88b516 ("MIPS: BCM47xx: Move SPROM driver to drivers/firmware/¨)
> Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
> ---
> Ralf, this is for mips-for-linux-next. If you happen to rebase your tree, you
> may squash this one with e8a46c88b516.

I've folded your patch into e8a46c88b516.

  Ralf

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

end of thread, other threads:[~2016-03-08  8:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-08  6:59 [PATCH] bcm47xx_sprom: Fix compilation with ssb/bcma as module Rafał Miłecki
2016-03-08  8:28 ` Ralf Baechle

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