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