Skip to content

Commit 96b952d

Browse files
Murali Iyerpaulusmack
authored andcommitted
[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>
1 parent 0f2342c commit 96b952d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎arch/powerpc/sysdev/dcr.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ unsigned int dcr_resource_start(struct device_node *np, unsigned int index)
3333

3434
return dr[index * 2];
3535
}
36+
EXPORT_SYMBOL_GPL(dcr_resource_start);
3637

3738
unsigned int dcr_resource_len(struct device_node *np, unsigned int index)
3839
{
@@ -44,6 +45,7 @@ unsigned int dcr_resource_len(struct device_node *np, unsigned int index)
4445

4546
return dr[index * 2 + 1];
4647
}
48+
EXPORT_SYMBOL_GPL(dcr_resource_len);
4749

4850
#ifndef CONFIG_PPC_DCR_NATIVE
4951

@@ -122,6 +124,7 @@ dcr_host_t dcr_map(struct device_node *dev, unsigned int dcr_n,
122124
ret.token -= dcr_n * ret.stride;
123125
return ret;
124126
}
127+
EXPORT_SYMBOL_GPL(dcr_map);
125128

126129
void dcr_unmap(dcr_host_t host, unsigned int dcr_n, unsigned int dcr_c)
127130
{
@@ -133,5 +136,6 @@ void dcr_unmap(dcr_host_t host, unsigned int dcr_n, unsigned int dcr_c)
133136
iounmap(h.token);
134137
h.token = NULL;
135138
}
139+
EXPORT_SYMBOL_GPL(dcr_unmap);
136140

137141
#endif /* !defined(CONFIG_PPC_DCR_NATIVE) */

0 commit comments

Comments
 (0)