Commit 5be32463 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven

m68k/amiga: Chip RAM - Use tabs for indentation

Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
parent 02f8c6ae
...@@ -55,7 +55,8 @@ void *amiga_chip_alloc(unsigned long size, const char *name) ...@@ -55,7 +55,8 @@ void *amiga_chip_alloc(unsigned long size, const char *name)
return NULL; return NULL;
res->name = name; res->name = name;
if (allocate_resource(&chipram_res, res, size, 0, UINT_MAX, PAGE_SIZE, NULL, NULL) < 0) { if (allocate_resource(&chipram_res, res, size, 0, UINT_MAX, PAGE_SIZE,
NULL, NULL) < 0) {
kfree(res); kfree(res);
return NULL; return NULL;
} }
...@@ -70,9 +71,9 @@ EXPORT_SYMBOL(amiga_chip_alloc); ...@@ -70,9 +71,9 @@ EXPORT_SYMBOL(amiga_chip_alloc);
/* /*
* Warning: * Warning:
* amiga_chip_alloc_res is meant only for drivers that need to allocate * amiga_chip_alloc_res is meant only for drivers that need to
* Chip RAM before kmalloc() is functional. As a consequence, those * allocate Chip RAM before kmalloc() is functional. As a consequence,
* drivers must not free that Chip RAM afterwards. * those drivers must not free that Chip RAM afterwards.
*/ */
void * __init amiga_chip_alloc_res(unsigned long size, struct resource *res) void * __init amiga_chip_alloc_res(unsigned long size, struct resource *res)
...@@ -87,9 +88,11 @@ void * __init amiga_chip_alloc_res(unsigned long size, struct resource *res) ...@@ -87,9 +88,11 @@ void * __init amiga_chip_alloc_res(unsigned long size, struct resource *res)
#ifdef DEBUG #ifdef DEBUG
printk("amiga_chip_alloc_res: allocate %ld bytes\n", size); printk("amiga_chip_alloc_res: allocate %ld bytes\n", size);
#endif #endif
if (allocate_resource(&chipram_res, res, size, start, UINT_MAX, PAGE_SIZE, NULL, NULL) < 0) { if (allocate_resource(&chipram_res, res, size, start, UINT_MAX,
PAGE_SIZE, NULL, NULL) < 0) {
printk("amiga_chip_alloc_res: first alloc failed!\n"); printk("amiga_chip_alloc_res: first alloc failed!\n");
if (allocate_resource(&chipram_res, res, size, 0, UINT_MAX, PAGE_SIZE, NULL, NULL) < 0) if (allocate_resource(&chipram_res, res, size, 0, UINT_MAX,
PAGE_SIZE, NULL, NULL) < 0)
return NULL; return NULL;
} }
chipavail -= size; chipavail -= size;
...@@ -117,7 +120,8 @@ void amiga_chip_free(void *ptr) ...@@ -117,7 +120,8 @@ void amiga_chip_free(void *ptr)
kfree(res); kfree(res);
return; return;
} }
printk("amiga_chip_free: trying to free nonexistent region at %p\n", ptr); printk("amiga_chip_free: trying to free nonexistent region at %p\n",
ptr);
} }
EXPORT_SYMBOL(amiga_chip_free); EXPORT_SYMBOL(amiga_chip_free);
......
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