blk: rq_data_dir() should not return a boolean
[cris-mirror.git] / arch / arm / mach-imx / mach-imx7d.c
blob62f3437257f1f55b8c08c0f57b062ff23c678ff5
1 /*
2 * Copyright (C) 2015 Freescale Semiconductor, Inc.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 */
8 #include <linux/irqchip.h>
9 #include <linux/of_platform.h>
10 #include <asm/mach/arch.h>
11 #include <asm/mach/map.h>
13 #include "common.h"
15 static void __init imx7d_init_machine(void)
17 struct device *parent;
19 parent = imx_soc_device_init();
20 if (parent == NULL)
21 pr_warn("failed to initialize soc device\n");
23 of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
24 imx_anatop_init();
27 static void __init imx7d_init_irq(void)
29 imx_init_revision_from_anatop();
30 imx_src_init();
31 irqchip_init();
34 static const char *const imx7d_dt_compat[] __initconst = {
35 "fsl,imx7d",
36 NULL,
39 DT_MACHINE_START(IMX7D, "Freescale i.MX7 Dual (Device Tree)")
40 .init_irq = imx7d_init_irq,
41 .init_machine = imx7d_init_machine,
42 .dt_compat = imx7d_dt_compat,
43 MACHINE_END