Linux 5.7.6
[linux/fpc-iii.git] / arch / arm / mach-imx / devices / devices.c
blobcd72f0894196c3bb5318a86e5231dda83a106d89
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3 * Copyright 2008 Sascha Hauer, kernel@pengutronix.de
4 */
6 #include <linux/kernel.h>
7 #include <linux/slab.h>
8 #include <linux/init.h>
9 #include <linux/err.h>
10 #include <linux/platform_device.h>
12 #include "../common.h"
13 #include "devices-common.h"
15 struct device mxc_aips_bus = {
16 .init_name = "mxc_aips",
19 struct device mxc_ahb_bus = {
20 .init_name = "mxc_ahb",
23 int __init mxc_device_init(void)
25 int ret;
27 ret = device_register(&mxc_aips_bus);
28 if (ret < 0)
29 goto done;
31 ret = device_register(&mxc_ahb_bus);
33 done:
34 return ret;