Skip to content

Commit

Permalink
m68knommu: simplify the ColdFire 5407 GPIO struct setup
Browse files Browse the repository at this point in the history
The GPIO data struct setup is now the only remaining code in the platform
gpio.c file. So move it to the platform config.c code and remove the gpio.c
file.

Signed-off-by: Greg Ungerer <[email protected]>
Acked-by: Steven King <[email protected]>
  • Loading branch information
gregungerer committed May 20, 2012
1 parent bb70e21 commit f198f9c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 28 deletions.
2 changes: 1 addition & 1 deletion arch/m68k/platform/5407/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@

asflags-$(CONFIG_FULLDEBUG) := -DDEBUGGER_COMPATIBLE_CACHE=1

obj-y := config.o gpio.o
obj-y := config.o

9 changes: 9 additions & 0 deletions arch/m68k/platform/5407/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@
#include <asm/machdep.h>
#include <asm/coldfire.h>
#include <asm/mcfsim.h>
#include <asm/mcfgpio.h>

/***************************************************************************/

struct mcf_gpio_chip mcf_gpio_chips[] = {
MCFGPS(PP, 0, 16, MCFSIM_PADDR, MCFSIM_PADAT, MCFSIM_PADAT),
};

unsigned int mcf_gpio_chips_size = ARRAY_SIZE(mcf_gpio_chips);

/***************************************************************************/

Expand Down
27 changes: 0 additions & 27 deletions arch/m68k/platform/5407/gpio.c

This file was deleted.

0 comments on commit f198f9c

Please sign in to comment.