diff options
Diffstat (limited to 'drivers/misc/jtag.c')
-rw-r--r-- | drivers/misc/jtag.c | 23 |
1 files changed, 5 insertions, 18 deletions
diff --git a/drivers/misc/jtag.c b/drivers/misc/jtag.c index 9accefa342..e884e58bac 100644 --- a/drivers/misc/jtag.c +++ b/drivers/misc/jtag.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * drivers/misc/jtag.c - More infos in include/jtag.h * @@ -5,20 +6,6 @@ * * Ported to barebox Jul 2012 by * Wjatscheslaw Stoljarski <wjatscheslaw.stoljarski@kiwigrid.com> - * - * 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. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include <common.h> @@ -269,7 +256,7 @@ static struct cdev_operations jtag_operations = { .ioctl = jtag_ioctl, }; -static void jtag_info(struct device_d *pdev) +static void jtag_info(struct device *pdev) { int dn, ret; struct jtag_rd_id jid; @@ -288,7 +275,7 @@ static void jtag_info(struct device_d *pdev) } } -static int jtag_probe(struct device_d *pdev) +static int jtag_probe(struct device *pdev) { int i, ret; struct jtag_info *info; @@ -361,7 +348,7 @@ fail_devfs_create: return ret; } -static void jtag_remove(struct device_d *pdev) +static void jtag_remove(struct device *pdev) { struct jtag_info *info = (struct jtag_info *) pdev->priv; @@ -371,7 +358,7 @@ static void jtag_remove(struct device_d *pdev) dev_notice(pdev, "Device removed\n"); } -static struct driver_d jtag_driver = { +static struct driver jtag_driver = { .name = JTAG_NAME, .probe = jtag_probe, .remove = jtag_remove, |