1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3  * Copyright 2008 Sascha Hauer, kernel@pengutronix.de
4  */
5 
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>
11 
12 #include "../common.h"
13 #include "devices-common.h"
14 
15 struct device mxc_aips_bus = {
16 	.init_name	= "mxc_aips",
17 };
18 
19 struct device mxc_ahb_bus = {
20 	.init_name	= "mxc_ahb",
21 };
22 
mxc_device_init(void)23 int __init mxc_device_init(void)
24 {
25 	int ret;
26 
27 	ret = device_register(&mxc_aips_bus);
28 	if (ret < 0)
29 		goto done;
30 
31 	ret = device_register(&mxc_ahb_bus);
32 
33 done:
34 	return ret;
35 }
36