diff options
Diffstat (limited to 'drivers/ata/intf_platform_ide.c')
-rw-r--r-- | drivers/ata/intf_platform_ide.c | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/drivers/ata/intf_platform_ide.c b/drivers/ata/intf_platform_ide.c index 15f5c0afaa..0d69b4b0c3 100644 --- a/drivers/ata/intf_platform_ide.c +++ b/drivers/ata/intf_platform_ide.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2011 Juergen Beisert, Pengutronix * @@ -5,20 +6,6 @@ * Copyright (C) 2006 - 2007 Paul Mundt * Based on pata_pcmcia: * Copyright 2005-2006 Red Hat Inc, all rights reserved. - * - * This file is subject to the terms and conditions of the GNU General Public - * License. See the file "COPYING" in the main directory of this archive - * for more details. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. */ #include <common.h> @@ -78,7 +65,7 @@ static void platform_ide_setup_port(void *reg_base, void *alt_base, } } -static int platform_ide_probe(struct device_d *dev) +static int platform_ide_probe(struct device *dev) { struct resource *iores; int rc; @@ -87,7 +74,7 @@ static int platform_ide_probe(struct device_d *dev) void *reg_base, *alt_base = NULL; struct resource *reg, *alt; int mmio = 0; - struct device_node *dn = dev->device_node; + struct device_node *dn = dev->of_node; u32 ioport_shift = 0; int dataif_be = 0; void (*reset)(int) = NULL; @@ -157,8 +144,9 @@ static __maybe_unused struct of_device_id platform_ide_dt_ids[] = { /* sentinel */ } }; +MODULE_DEVICE_TABLE(of, platform_ide_dt_ids); -static struct driver_d platform_ide_driver = { +static struct driver platform_ide_driver = { .name = "ide_intf", .probe = platform_ide_probe, .of_compatible = DRV_OF_COMPAT(platform_ide_dt_ids), |