Skip to content

Commit 859186e

Browse files
paliLorenzo Pieralisi
authored andcommitted
bus: mvebu-mbus: Export symbols for public API window functions
This would allow to compile pci-mvebu.c driver as module. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Pali Rohár <[email protected]> Signed-off-by: Lorenzo Pieralisi <[email protected]>
1 parent 4ab3454 commit 859186e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/bus/mvebu-mbus.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -914,13 +914,15 @@ int mvebu_mbus_add_window_remap_by_id(unsigned int target,
914914

915915
return mvebu_mbus_alloc_window(s, base, size, remap, target, attribute);
916916
}
917+
EXPORT_SYMBOL_GPL(mvebu_mbus_add_window_remap_by_id);
917918

918919
int mvebu_mbus_add_window_by_id(unsigned int target, unsigned int attribute,
919920
phys_addr_t base, size_t size)
920921
{
921922
return mvebu_mbus_add_window_remap_by_id(target, attribute, base,
922923
size, MVEBU_MBUS_NO_REMAP);
923924
}
925+
EXPORT_SYMBOL_GPL(mvebu_mbus_add_window_by_id);
924926

925927
int mvebu_mbus_del_window(phys_addr_t base, size_t size)
926928
{
@@ -933,20 +935,23 @@ int mvebu_mbus_del_window(phys_addr_t base, size_t size)
933935
mvebu_mbus_disable_window(&mbus_state, win);
934936
return 0;
935937
}
938+
EXPORT_SYMBOL_GPL(mvebu_mbus_del_window);
936939

937940
void mvebu_mbus_get_pcie_mem_aperture(struct resource *res)
938941
{
939942
if (!res)
940943
return;
941944
*res = mbus_state.pcie_mem_aperture;
942945
}
946+
EXPORT_SYMBOL_GPL(mvebu_mbus_get_pcie_mem_aperture);
943947

944948
void mvebu_mbus_get_pcie_io_aperture(struct resource *res)
945949
{
946950
if (!res)
947951
return;
948952
*res = mbus_state.pcie_io_aperture;
949953
}
954+
EXPORT_SYMBOL_GPL(mvebu_mbus_get_pcie_io_aperture);
950955

951956
int mvebu_mbus_get_dram_win_info(phys_addr_t phyaddr, u8 *target, u8 *attr)
952957
{

0 commit comments

Comments
 (0)