blob: cd72f0894196c3bb5318a86e5231dda83a106d89 [file] [log] [blame]
David Brazdil0f672f62019-12-10 10:32:29 +00001// SPDX-License-Identifier: GPL-2.0-or-later
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00002/*
3 * Copyright 2008 Sascha Hauer, kernel@pengutronix.de
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00004 */
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
15struct device mxc_aips_bus = {
16 .init_name = "mxc_aips",
17};
18
19struct device mxc_ahb_bus = {
20 .init_name = "mxc_ahb",
21};
22
23int __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
33done:
34 return ret;
35}