diff options
Diffstat (limited to 'arch/arm/mach-mx3/mach-mx31lilly.c')
-rw-r--r-- | arch/arm/mach-mx3/mach-mx31lilly.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/arch/arm/mach-mx3/mach-mx31lilly.c b/arch/arm/mach-mx3/mach-mx31lilly.c index 46bf57c44372..84942cf41b63 100644 --- a/arch/arm/mach-mx3/mach-mx31lilly.c +++ b/arch/arm/mach-mx3/mach-mx31lilly.c | |||
@@ -18,10 +18,6 @@ | |||
18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
20 | * GNU General Public License for more details. | 20 | * GNU General Public License for more details. |
21 | * | ||
22 | * You should have received a copy of the GNU General Public License | ||
23 | * along with this program; if not, write to the Free Software | ||
24 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
25 | */ | 21 | */ |
26 | 22 | ||
27 | #include <linux/types.h> | 23 | #include <linux/types.h> |
@@ -46,10 +42,10 @@ | |||
46 | #include <mach/common.h> | 42 | #include <mach/common.h> |
47 | #include <mach/iomux-mx3.h> | 43 | #include <mach/iomux-mx3.h> |
48 | #include <mach/board-mx31lilly.h> | 44 | #include <mach/board-mx31lilly.h> |
49 | #include <mach/spi.h> | ||
50 | #include <mach/mxc_ehci.h> | 45 | #include <mach/mxc_ehci.h> |
51 | #include <mach/ulpi.h> | 46 | #include <mach/ulpi.h> |
52 | 47 | ||
48 | #include "devices-imx31.h" | ||
53 | #include "devices.h" | 49 | #include "devices.h" |
54 | 50 | ||
55 | /* | 51 | /* |
@@ -257,12 +253,12 @@ static int spi_internal_chipselect[] = { | |||
257 | MXC_SPI_CS(2), | 253 | MXC_SPI_CS(2), |
258 | }; | 254 | }; |
259 | 255 | ||
260 | static struct spi_imx_master spi0_pdata = { | 256 | static const struct spi_imx_master spi0_pdata __initconst = { |
261 | .chipselect = spi_internal_chipselect, | 257 | .chipselect = spi_internal_chipselect, |
262 | .num_chipselect = ARRAY_SIZE(spi_internal_chipselect), | 258 | .num_chipselect = ARRAY_SIZE(spi_internal_chipselect), |
263 | }; | 259 | }; |
264 | 260 | ||
265 | static struct spi_imx_master spi1_pdata = { | 261 | static const struct spi_imx_master spi1_pdata __initconst = { |
266 | .chipselect = spi_internal_chipselect, | 262 | .chipselect = spi_internal_chipselect, |
267 | .num_chipselect = ARRAY_SIZE(spi_internal_chipselect), | 263 | .num_chipselect = ARRAY_SIZE(spi_internal_chipselect), |
268 | }; | 264 | }; |
@@ -315,8 +311,8 @@ static void __init mx31lilly_board_init(void) | |||
315 | mxc_iomux_alloc_pin(MX31_PIN_CSPI2_SS1__SS1, "SPI2_SS1"); | 311 | mxc_iomux_alloc_pin(MX31_PIN_CSPI2_SS1__SS1, "SPI2_SS1"); |
316 | mxc_iomux_alloc_pin(MX31_PIN_CSPI2_SS2__SS2, "SPI2_SS2"); | 312 | mxc_iomux_alloc_pin(MX31_PIN_CSPI2_SS2__SS2, "SPI2_SS2"); |
317 | 313 | ||
318 | mxc_register_device(&mxc_spi_device0, &spi0_pdata); | 314 | imx31_add_spi_imx0(&spi0_pdata); |
319 | mxc_register_device(&mxc_spi_device1, &spi1_pdata); | 315 | imx31_add_spi_imx1(&spi1_pdata); |
320 | spi_register_board_info(&mc13783_dev, 1); | 316 | spi_register_board_info(&mc13783_dev, 1); |
321 | 317 | ||
322 | platform_add_devices(devices, ARRAY_SIZE(devices)); | 318 | platform_add_devices(devices, ARRAY_SIZE(devices)); |