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
5097d470
Commit
5097d470
authored
Sep 29, 2002
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] Correct the usage of __FUNCTION__ to make gcc happy.
parent
2e203506
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
15 deletions
+21
-15
arch/arm/mach-pxa/dma.c
arch/arm/mach-pxa/dma.c
+3
-3
arch/arm/mach-sa1100/badge4.c
arch/arm/mach-sa1100/badge4.c
+5
-4
arch/arm/mach-sa1100/dma.c
arch/arm/mach-sa1100/dma.c
+11
-7
arch/arm/mach-sa1100/h3600.c
arch/arm/mach-sa1100/h3600.c
+2
-1
No files found.
arch/arm/mach-pxa/dma.c
View file @
5097d470
...
...
@@ -81,9 +81,9 @@ void pxa_free_dma (int dma_ch)
unsigned
long
flags
;
if
(
!
dma_channels
[
dma_ch
].
name
)
{
printk
(
KERN_CRIT
__FUNCTION__
": trying to free channel %d which is already freed
\n
"
,
dma_ch
);
printk
(
KERN_CRIT
"
%s
: trying to free channel %d which is already freed
\n
"
,
__FUNCTION__
,
dma_ch
);
return
;
}
...
...
arch/arm/mach-sa1100/badge4.c
View file @
5097d470
...
...
@@ -57,8 +57,9 @@ static int __init badge4_init(void)
ret
=
badge4_sa1111_init
();
if
(
ret
<
0
)
printk
(
KERN_ERR
__FUNCTION__
": SA-1111 initialization failed (%d)
\n
"
,
ret
);
printk
(
KERN_ERR
"%s: SA-1111 initialization failed (%d)
\n
"
,
__FUNCTION__
,
ret
);
/* N.B, according to rmk this is the singular place that GPDR
should be set */
...
...
@@ -132,11 +133,11 @@ void badge4_set_5V(unsigned subsystem, int on)
/* detect on->off and off->on transitions */
if
((
!
old_5V_bitmap
)
&&
(
badge4_5V_bitmap
))
{
/* was off, now on */
printk
(
KERN_INFO
__FUNCTION__
": enabling 5V supply rail
\n
"
);
printk
(
KERN_INFO
"%s: enabling 5V supply rail
\n
"
,
__FUNCTION__
);
GPSR
=
BADGE4_GPIO_PCMEN5V
;
}
else
if
((
old_5V_bitmap
)
&&
(
!
badge4_5V_bitmap
))
{
/* was on, now off */
printk
(
KERN_INFO
__FUNCTION__
": disabling 5V supply rail
\n
"
);
printk
(
KERN_INFO
"%s: disabling 5V supply rail
\n
"
,
__FUNCTION__
);
GPCR
=
BADGE4_GPIO_PCMEN5V
;
}
...
...
arch/arm/mach-sa1100/dma.c
View file @
5097d470
...
...
@@ -126,9 +126,9 @@ int sa1100_request_dma (dma_device_t device, const char *device_id,
err
=
request_irq
(
IRQ_DMA0
+
i
,
dma_irq_handler
,
SA_INTERRUPT
,
device_id
,
regs
);
if
(
err
)
{
printk
(
KERN_ERR
__FUNCTION__
"unable to request IRQ %d for %s
\n
"
,
IRQ_DMA0
+
i
,
device_id
);
printk
(
KERN_ERR
"
%s:
unable to request IRQ %d for %s
\n
"
,
__FUNCTION__
,
IRQ_DMA0
+
i
,
device_id
);
dma
->
device
=
0
;
return
err
;
}
...
...
@@ -164,12 +164,12 @@ void sa1100_free_dma(dma_regs_t *regs)
if
(
regs
==
(
dma_regs_t
*
)
&
DDAR
(
i
))
break
;
if
(
i
>=
SA1100_DMA_CHANNELS
)
{
printk
(
KERN_ERR
__FUNCTION__
": bad DMA identifier
\n
"
);
printk
(
KERN_ERR
"%s: bad DMA identifier
\n
"
,
__FUNCTION__
);
return
;
}
if
(
!
dma_chan
[
i
].
device
)
{
printk
(
KERN_ERR
__FUNCTION__
"Trying to free free DMA
\n
"
);
printk
(
KERN_ERR
"%s: Trying to free free DMA
\n
"
,
__FUNCTION__
);
return
;
}
...
...
@@ -215,10 +215,14 @@ void sa1100_free_dma(dma_regs_t *regs)
int
sa1100_start_dma
(
dma_regs_t
*
regs
,
dma_addr_t
dma_ptr
,
u_int
size
)
{
long
flags
;
unsigned
long
flags
;
u_long
status
;
int
ret
;
if
(
dma_ptr
&
3
)
printk
(
KERN_WARNING
"DMA: unaligned start address (0x%08lx)
\n
"
,
(
unsigned
long
)
dma_ptr
);
if
(
size
>
MAX_DMA_SIZE
)
return
-
EOVERFLOW
;
...
...
@@ -324,7 +328,7 @@ void sa1100_reset_dma(dma_regs_t *regs)
if
(
regs
==
(
dma_regs_t
*
)
&
DDAR
(
i
))
break
;
if
(
i
>=
SA1100_DMA_CHANNELS
)
{
printk
(
KERN_ERR
__FUNCTION__
": bad DMA identifier
\n
"
);
printk
(
KERN_ERR
"%s: bad DMA identifier
\n
"
,
__FUNCTION__
);
return
;
}
...
...
arch/arm/mach-sa1100/h3600.c
View file @
5097d470
...
...
@@ -133,7 +133,8 @@ static void h3100_control_egpio( enum ipaq_egpio_type x, int setp )
/*
if ( x != IPAQ_EGPIO_VPP_ON ) {
printk(__FUNCTION__ " : type=%d (%s) gpio=0x%x (0x%x) egpio=0x%x (0x%x) setp=%d\n",
printk("%s: type=%d (%s) gpio=0x%x (0x%x) egpio=0x%x (0x%x) setp=%d\n",
__FUNCTION__,
x, egpio_names[x], GPLR, gpio, h3600_egpio, egpio, setp );
}
*/
...
...
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