2019-05-19 20:51:31 +07:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2008-09-09 15:19:40 +07:00
|
|
|
/*
|
|
|
|
* Copyright 2008 Sascha Hauer, kernel@pengutronix.de
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/kernel.h>
|
2010-11-02 17:56:54 +07:00
|
|
|
#include <linux/slab.h>
|
2008-09-09 15:19:40 +07:00
|
|
|
#include <linux/init.h>
|
2010-06-15 16:31:02 +07:00
|
|
|
#include <linux/err.h>
|
2008-09-09 15:19:40 +07:00
|
|
|
#include <linux/platform_device.h>
|
|
|
|
|
2016-06-09 00:23:40 +07:00
|
|
|
#include "../common.h"
|
|
|
|
#include "devices-common.h"
|
|
|
|
|
2011-06-05 23:07:55 +07:00
|
|
|
struct device mxc_aips_bus = {
|
|
|
|
.init_name = "mxc_aips",
|
|
|
|
};
|
|
|
|
|
2011-06-22 21:41:30 +07:00
|
|
|
struct device mxc_ahb_bus = {
|
|
|
|
.init_name = "mxc_ahb",
|
|
|
|
};
|
|
|
|
|
2012-09-20 13:21:16 +07:00
|
|
|
int __init mxc_device_init(void)
|
2011-06-05 23:07:55 +07:00
|
|
|
{
|
2011-06-22 21:41:30 +07:00
|
|
|
int ret;
|
|
|
|
|
|
|
|
ret = device_register(&mxc_aips_bus);
|
2013-03-14 03:49:10 +07:00
|
|
|
if (ret < 0)
|
2011-06-22 21:41:30 +07:00
|
|
|
goto done;
|
|
|
|
|
|
|
|
ret = device_register(&mxc_ahb_bus);
|
|
|
|
|
|
|
|
done:
|
|
|
|
return ret;
|
2011-06-05 23:07:55 +07:00
|
|
|
}
|