Skip to content

Commit

Permalink
mx1: prefix SOC specific defines with MX1_ and deprecate old names
Browse files Browse the repository at this point in the history
The old names are defined only if the cpp symbol
IMX_NEEDS_DEPRECATED_SYMBOLS exists, which is defined (for now) for all
files below arch/arm/mach-mx1.

This was done earlier for mx2 and mx3, too.

USBD_INT0 is for now defined unconditionally to prevent breaking
drivers/usb/gadget/imx_udc.

While at it use IMX_IO_ADDRESS to define MX1_IO_ADDRESS which
adds a cast to the IO_ADDRESS macro fixing many warnings like

	arch/arm/mach-mx1/generic.c:51: warning: passing argument 1 of 'mxc_init_irq' makes pointer from integer without a cast

.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
  • Loading branch information
Uwe Kleine-König committed Jan 30, 2010
1 parent 1eaa4f2 commit 7d58289
Show file tree
Hide file tree
Showing 2 changed files with 261 additions and 127 deletions.
1 change: 1 addition & 0 deletions arch/arm/mach-mx1/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

# Object file lists.

EXTRA_CFLAGS += -DIMX_NEEDS_DEPRECATED_SYMBOLS
obj-y += generic.o clock.o devices.o

# Support for CMOS sensor interface
Expand Down
Loading

0 comments on commit 7d58289

Please sign in to comment.