Skip to content

Commit

Permalink
[SPARC]: device_node name constification fallout
Browse files Browse the repository at this point in the history
A couple of routines need their arguments to be const.

Signed-off-by: Stephen Rothwell <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
sfrothwell authored and David S. Miller committed Apr 26, 2007
1 parent 3e4d265 commit ee5ac9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions arch/sparc/kernel/ebus.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
struct linux_ebus *ebus_chain = NULL;

/* We are together with pcic.c under CONFIG_PCI. */
extern unsigned int pcic_pin_to_irq(unsigned int, char *name);
extern unsigned int pcic_pin_to_irq(unsigned int, const char *name);

/*
* IRQ Blacklist
Expand Down Expand Up @@ -69,7 +69,7 @@ static inline unsigned long ebus_alloc(size_t size)

/*
*/
int __init ebus_blacklist_irq(char *name)
int __init ebus_blacklist_irq(const char *name)
{
struct ebus_device_irq *dp;

Expand Down
4 changes: 1 addition & 3 deletions arch/sparc/kernel/pcic.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@
#include <asm/irq_regs.h>


unsigned int pcic_pin_to_irq(unsigned int pin, char *name);

/*
* I studied different documents and many live PROMs both from 2.30
* family and 3.xx versions. I came to the amazing conclusion: there is
Expand Down Expand Up @@ -681,7 +679,7 @@ void __devinit pcibios_fixup_bus(struct pci_bus *bus)
* pcic_pin_to_irq() is exported to ebus.c.
*/
unsigned int
pcic_pin_to_irq(unsigned int pin, char *name)
pcic_pin_to_irq(unsigned int pin, const char *name)
{
struct linux_pcic *pcic = &pcic0;
unsigned int irq;
Expand Down

0 comments on commit ee5ac9d

Please sign in to comment.