David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 1 | // SPDX-License-Identifier: GPL-2.0-or-later |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 2 | /* |
| 3 | * Copyright 2008 Sascha Hauer, kernel@pengutronix.de |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 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 | |
| 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 | } |