Skip to content

Commit

Permalink
[POWERPC] mpc82xx: Remove a bunch of cruft that duplicates generic fu…
Browse files Browse the repository at this point in the history
…nctionality.

m82xx_calibrate_decr(), mpc82xx_ads_show_cpuinfo(), and mpc82xx_halt() do
anything useful beyond what the generic code does.

Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
  • Loading branch information
Scott Wood authored and Kumar Gala committed Oct 4, 2007
1 parent 11af119 commit 4ff62e1
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 125 deletions.
1 change: 0 additions & 1 deletion arch/powerpc/platforms/82xx/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#
# Makefile for the PowerPC 82xx linux kernel.
#
obj-$(CONFIG_PPC_82xx) += mpc82xx.o
obj-$(CONFIG_MPC82xx_ADS) += mpc82xx_ads.o
109 changes: 0 additions & 109 deletions arch/powerpc/platforms/82xx/mpc82xx.c

This file was deleted.

11 changes: 2 additions & 9 deletions arch/powerpc/platforms/82xx/mpc82xx_ads.c
Original file line number Diff line number Diff line change
Expand Up @@ -612,20 +612,13 @@ static void m82xx_restart(char *cmd)
while (1) ;
}

static void m82xx_halt(void)
{
local_irq_disable();
while (1) ;
}

define_machine(mpc82xx_ads)
{
.name = "MPC82xx ADS",
.probe = mpc82xx_ads_probe,
.setup_arch = mpc82xx_ads_setup_arch,
.init_IRQ = mpc82xx_ads_pic_init,
.show_cpuinfo = mpc82xx_ads_show_cpuinfo,
.get_irq = cpm2_get_irq,
.calibrate_decr = m82xx_calibrate_decr,
.restart = m82xx_restart,.halt = m82xx_halt,
.calibrate_decr = generic_calibrate_decr,
.restart = m82xx_restart,
};
6 changes: 0 additions & 6 deletions arch/powerpc/platforms/82xx/pq2ads.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@

#include <linux/seq_file.h>

/* For our show_cpuinfo hooks. */
#define CPUINFO_VENDOR "Freescale Semiconductor"
#define CPUINFO_MACHINE "PQ2 ADS PowerPC"

/* Backword-compatibility stuff for the drivers */
#define CPM_MAP_ADDR ((uint)0xf0000000)
#define CPM_IRQ_OFFSET 0
Expand Down Expand Up @@ -58,8 +54,6 @@
#define SIU_INT_SCC4 ((uint)0x2b+CPM_IRQ_OFFSET)

void m82xx_pci_init_irq(void);
void mpc82xx_ads_show_cpuinfo(struct seq_file*);
void m82xx_calibrate_decr(void);

#endif /* __MACH_ADS8260_DEFS */
#endif /* __KERNEL__ */

0 comments on commit 4ff62e1

Please sign in to comment.