Commit 3304a580 authored by Russell King's avatar Russell King

Fix scope of init/exit functions in ds1620.c

NetWinder flash driver should use ioremap, not the private __ioremap.
parent 1f67bb2a
...@@ -348,7 +348,7 @@ static struct miscdevice ds1620_miscdev = { ...@@ -348,7 +348,7 @@ static struct miscdevice ds1620_miscdev = {
&ds1620_fops &ds1620_fops
}; };
int __init ds1620_init(void) static int __init ds1620_init(void)
{ {
int ret; int ret;
struct therm th, th_start; struct therm th, th_start;
...@@ -400,7 +400,7 @@ int __init ds1620_init(void) ...@@ -400,7 +400,7 @@ int __init ds1620_init(void)
return 0; return 0;
} }
void __exit ds1620_exit(void) static void __exit ds1620_exit(void)
{ {
#ifdef THERM_USE_PROC #ifdef THERM_USE_PROC
remove_proc_entry("therm", NULL); remove_proc_entry("therm", NULL);
......
...@@ -672,7 +672,7 @@ static int __init nwflash_init(void) ...@@ -672,7 +672,7 @@ static int __init nwflash_init(void)
if (machine_is_netwinder()) { if (machine_is_netwinder()) {
int id; int id;
FLASH_BASE = __ioremap(DC21285_FLASH, KFLASH_SIZE4, 0); FLASH_BASE = ioremap(DC21285_FLASH, KFLASH_SIZE4);
if (!FLASH_BASE) if (!FLASH_BASE)
goto out; goto out;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment