diff options
Diffstat (limited to 'drivers/mci/imx.c')
-rw-r--r-- | drivers/mci/imx.c | 31 |
1 files changed, 14 insertions, 17 deletions
diff --git a/drivers/mci/imx.c b/drivers/mci/imx.c index 354daba05d..48a3378335 100644 --- a/drivers/mci/imx.c +++ b/drivers/mci/imx.c @@ -1,19 +1,15 @@ +// SPDX-License-Identifier: GPL-2.0-only +// SPDX-FileCopyrightText: 2009 Ilya Yanok <yanok@emcraft.com> +// SPDX-FileCopyrightText: 2008 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix +// SPDX-FileCopyrightText: 2006 Pavel Pisa <ppisa@pikron.com>, PiKRON + /* - * This is a driver for the SDHC controller found in Freescale MX2/MX3 - * SoCs. It is basically the same hardware as found on MX1 (imxmmc.c). - * Unlike the hardware found on MX1, this hardware just works and does - * not need all the quirks found in imxmmc.c, hence the separate driver. - * - * Copyright (C) 2009 Ilya Yanok, <yanok@emcraft.com> - * Copyright (C) 2008 Sascha Hauer, Pengutronix <s.hauer@pengutronix.de> - * Copyright (C) 2006 Pavel Pisa, PiKRON <ppisa@pikron.com> - * - * derived from pxamci.c by Russell King - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. + * This is a driver for the SDHC controller found in Freescale MX2/MX3 + * SoCs. It is basically the same hardware as found on MX1 (imxmmc.c). + * Unlike the hardware found on MX1, this hardware just works and does + * not need all the quirks found in imxmmc.c, hence the separate driver. * + * Derived from pxamci.c by Russell King */ #include <config.h> @@ -469,7 +465,7 @@ static void mxcmci_set_ios(struct mci_host *mci, struct mci_ios *ios) host->clock = ios->clock; } -static int mxcmci_init(struct mci_host *mci, struct device_d *dev) +static int mxcmci_init(struct mci_host *mci, struct device *dev) { struct mxcmci_host *host = to_mxcmci(mci); @@ -490,7 +486,7 @@ static int mxcmci_init(struct mci_host *mci, struct device_d *dev) return 0; } -static int mxcmci_probe(struct device_d *dev) +static int mxcmci_probe(struct device *dev) { struct resource *iores; struct mxcmci_host *host; @@ -531,8 +527,9 @@ static __maybe_unused struct of_device_id mxcmci_compatible[] = { /* sentinel */ } }; +MODULE_DEVICE_TABLE(of, mxcmci_compatible); -static struct driver_d mxcmci_driver = { +static struct driver mxcmci_driver = { .name = DRIVER_NAME, .probe = mxcmci_probe, .of_compatible = DRV_OF_COMPAT(mxcmci_compatible), |