mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-24 05:04:00 +08:00
ARM: 9174/1: amba: Move EXPORT_SYMBOL() closer to definition
Some EXPORT_SYMBOL() is at the end of the function, but some is at the end of file. For reader sanity and be consistent, move all EXPORT_SYMBOL() declarations just after the end of the function. Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
This commit is contained in:
parent
dacf3ca134
commit
a2e7ae86a6
@ -370,6 +370,7 @@ int amba_driver_register(struct amba_driver *drv)
|
||||
|
||||
return driver_register(&drv->drv);
|
||||
}
|
||||
EXPORT_SYMBOL(amba_driver_register);
|
||||
|
||||
/**
|
||||
* amba_driver_unregister - remove an AMBA device driver
|
||||
@ -383,7 +384,7 @@ void amba_driver_unregister(struct amba_driver *drv)
|
||||
{
|
||||
driver_unregister(&drv->drv);
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(amba_driver_unregister);
|
||||
|
||||
static void amba_device_release(struct device *dev)
|
||||
{
|
||||
@ -642,6 +643,7 @@ int amba_device_register(struct amba_device *dev, struct resource *parent)
|
||||
|
||||
return amba_device_add(dev, parent);
|
||||
}
|
||||
EXPORT_SYMBOL(amba_device_register);
|
||||
|
||||
/**
|
||||
* amba_device_put - put an AMBA device
|
||||
@ -668,6 +670,7 @@ void amba_device_unregister(struct amba_device *dev)
|
||||
{
|
||||
device_unregister(&dev->dev);
|
||||
}
|
||||
EXPORT_SYMBOL(amba_device_unregister);
|
||||
|
||||
/**
|
||||
* amba_request_regions - request all mem regions associated with device
|
||||
@ -689,6 +692,7 @@ int amba_request_regions(struct amba_device *dev, const char *name)
|
||||
|
||||
return ret;
|
||||
}
|
||||
EXPORT_SYMBOL(amba_request_regions);
|
||||
|
||||
/**
|
||||
* amba_release_regions - release mem regions associated with device
|
||||
@ -703,10 +707,4 @@ void amba_release_regions(struct amba_device *dev)
|
||||
size = resource_size(&dev->res);
|
||||
release_mem_region(dev->res.start, size);
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(amba_driver_register);
|
||||
EXPORT_SYMBOL(amba_driver_unregister);
|
||||
EXPORT_SYMBOL(amba_device_register);
|
||||
EXPORT_SYMBOL(amba_device_unregister);
|
||||
EXPORT_SYMBOL(amba_request_regions);
|
||||
EXPORT_SYMBOL(amba_release_regions);
|
||||
|
Loading…
Reference in New Issue
Block a user