Prechádzať zdrojové kódy

[POWERPC] Export DCR symbols for modules

In order to compile drivers as modules that uses some of the
DCR functions, we need to export the symbols.  Example, EMAC
driver and other drivers that are under development use these
functions.

Signed-off-by: Murali Iyer <mniyer@us.ibm.com>
Acked-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Murali Iyer 18 rokov pred
rodič
commit
96b952dd4b
1 zmenil súbory, kde vykonal 4 pridanie a 0 odobranie
  1. 4 0
      arch/powerpc/sysdev/dcr.c

+ 4 - 0
arch/powerpc/sysdev/dcr.c

@@ -33,6 +33,7 @@ unsigned int dcr_resource_start(struct device_node *np, unsigned int index)
 
 
 	return dr[index * 2];
 	return dr[index * 2];
 }
 }
+EXPORT_SYMBOL_GPL(dcr_resource_start);
 
 
 unsigned int dcr_resource_len(struct device_node *np, unsigned int index)
 unsigned int dcr_resource_len(struct device_node *np, unsigned int index)
 {
 {
@@ -44,6 +45,7 @@ unsigned int dcr_resource_len(struct device_node *np, unsigned int index)
 
 
 	return dr[index * 2 + 1];
 	return dr[index * 2 + 1];
 }
 }
+EXPORT_SYMBOL_GPL(dcr_resource_len);
 
 
 #ifndef CONFIG_PPC_DCR_NATIVE
 #ifndef CONFIG_PPC_DCR_NATIVE
 
 
@@ -122,6 +124,7 @@ dcr_host_t dcr_map(struct device_node *dev, unsigned int dcr_n,
 	ret.token -= dcr_n * ret.stride;
 	ret.token -= dcr_n * ret.stride;
 	return ret;
 	return ret;
 }
 }
+EXPORT_SYMBOL_GPL(dcr_map);
 
 
 void dcr_unmap(dcr_host_t host, unsigned int dcr_n, unsigned int dcr_c)
 void dcr_unmap(dcr_host_t host, unsigned int dcr_n, unsigned int dcr_c)
 {
 {
@@ -133,5 +136,6 @@ void dcr_unmap(dcr_host_t host, unsigned int dcr_n, unsigned int dcr_c)
 	iounmap(h.token);
 	iounmap(h.token);
 	h.token = NULL;
 	h.token = NULL;
 }
 }
+EXPORT_SYMBOL_GPL(dcr_unmap);
 
 
 #endif /* !defined(CONFIG_PPC_DCR_NATIVE) */
 #endif /* !defined(CONFIG_PPC_DCR_NATIVE) */