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