Use 'unsigned int' instead of 'unsigned'.
Make udelay() use 'unsigned int' instead of 'int'. Fix interface of log2(), the current implementation takes an 'unsigned int' and returns an 'int'. Purely cosmetic fix in the license header (consistency reasons). Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@231 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
parent
9d63d2a039
commit
2df5e3a407
3 changed files with 10 additions and 10 deletions
|
|
@ -20,14 +20,14 @@
|
|||
|
||||
#include <lib.h>
|
||||
|
||||
void mdelay(unsigned msecs)
|
||||
void mdelay(unsigned int msecs)
|
||||
{
|
||||
unsigned int i;
|
||||
for (i = 0; i < msecs; i++) {
|
||||
udelay(1000);
|
||||
}
|
||||
}
|
||||
void delay(unsigned secs)
|
||||
void delay(unsigned int secs)
|
||||
{
|
||||
unsigned int i;
|
||||
for (i = 0; i < secs; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue