Drop the round() function, as it is an exact copy of align_up().
Also, make align_up()/align_down() non-static as they are useful even outside of device/device_util.c. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@437 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
parent
fc12d1d148
commit
588f740124
3 changed files with 8 additions and 21 deletions
|
|
@ -257,6 +257,9 @@ void default_device_constructor(struct device *dev, struct constructor *construc
|
|||
#define DEVICE_IO_ALIGN 16
|
||||
#define DEVICE_MEM_ALIGN 4096
|
||||
|
||||
resource_t align_up(resource_t val, unsigned long gran);
|
||||
resource_t align_down(resource_t val, unsigned long gran);
|
||||
|
||||
extern struct device_operations default_dev_ops_root;
|
||||
|
||||
extern int id_eq(struct device_id *id1, struct device_id *id2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue