Skip to content

Commit

Permalink
[SPARC64] psycho: Fix pbm->name handling in pbm_register_toplevel_res…
Browse files Browse the repository at this point in the history
…ources()

We shouldn't overwrite it, it's the device node full name
already and that's what we want.

Based upon a report from Marc Zyngier.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Jul 15, 2006
1 parent 5b4bbb3 commit a492615
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions arch/sparc64/kernel/pci_psycho.c
Original file line number Diff line number Diff line change
Expand Up @@ -1099,9 +1099,6 @@ static void pbm_register_toplevel_resources(struct pci_controller_info *p,
{
char *name = pbm->name;

sprintf(name, "PSYCHO%d PBM%c",
p->index,
(pbm == &p->pbm_A ? 'A' : 'B'));
pbm->io_space.name = pbm->mem_space.name = name;

request_resource(&ioport_resource, &pbm->io_space);
Expand Down

0 comments on commit a492615

Please sign in to comment.