Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
5be32463
Commit
5be32463
authored
May 21, 2011
by
Geert Uytterhoeven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
m68k/amiga: Chip RAM - Use tabs for indentation
Signed-off-by:
Geert Uytterhoeven
<
geert@linux-m68k.org
>
parent
02f8c6ae
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
61 additions
and
57 deletions
+61
-57
arch/m68k/amiga/chipram.c
arch/m68k/amiga/chipram.c
+61
-57
No files found.
arch/m68k/amiga/chipram.c
View file @
5be32463
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment