MIPS: Sibyte: Export symbol periph_rev to sb1250-mac network driver.
authorRalf Baechle <ralf@linux-mips.org>
Fri, 21 Apr 2017 01:14:51 +0000 (03:14 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 21 Apr 2017 01:23:24 +0000 (03:23 +0200)
This fixes the following modpost error:

ERROR: "periph_rev" [drivers/net/ethernet/broadcom/sb1250-mac.ko] undefined!

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/sibyte/bcm1480/setup.c
arch/mips/sibyte/sb1250/setup.c

index a05246cbf54cfe852ff288202b9cbec972e4ebbc..2035aaec8514f51c835988d69743afe61e3c0418 100644 (file)
@@ -36,6 +36,7 @@ unsigned int soc_pass;
 unsigned int soc_type;
 EXPORT_SYMBOL(soc_type);
 unsigned int periph_rev;
+EXPORT_SYMBOL_GPL(periph_rev);
 unsigned int zbbus_mhz;
 EXPORT_SYMBOL(zbbus_mhz);
 
index 90e43782342b6e0691fd7369186e83e758b68f6f..aa7713adfa58fa79d5f2dcb00f420d2e02b43fc8 100644 (file)
@@ -34,6 +34,7 @@ unsigned int soc_pass;
 unsigned int soc_type;
 EXPORT_SYMBOL(soc_type);
 unsigned int periph_rev;
+EXPORT_SYMBOL_GPL(periph_rev);
 unsigned int zbbus_mhz;
 EXPORT_SYMBOL(zbbus_mhz);