Skip to content

Commit

Permalink
powerpc/86xx: Run sbc310 USB fixup code only on the appropriate platf…
Browse files Browse the repository at this point in the history
…orm.

Patch to limit NEC fixup to SBC310, following similar patch to SBC610 by
Tony Breeds: 368a121

Signed-off-by: Martyn Welch <martyn.welch@gefanuc.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
  • Loading branch information
Martyn Welch authored and Kumar Gala committed Mar 19, 2009
1 parent 563fdd4 commit 01ce8ef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/powerpc/platforms/86xx/gef_sbc310.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ static void __init gef_sbc310_nec_fixup(struct pci_dev *pdev)
{
unsigned int val;

/* Do not do the fixup on other platforms! */
if (!machine_is(gef_sbc310))
return;

printk(KERN_INFO "Running NEC uPD720101 Fixup\n");

/* Ensure only ports 1 & 2 are enabled */
Expand Down

0 comments on commit 01ce8ef

Please sign in to comment.