hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/pcmcia/pcmcia_resource.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * PCMCIA 16-bit resource management functions
34 *
....@@ -7,11 +8,6 @@
78 *
89 * Copyright (C) 1999 David A. Hinds
910 * Copyright (C) 2004-2010 Dominik Brodowski
10
- *
11
- * This program is free software; you can redistribute it and/or modify
12
- * it under the terms of the GNU General Public License version 2 as
13
- * published by the Free Software Foundation.
14
- *
1511 */
1612
1713 #include <linux/module.h>
....@@ -284,7 +280,7 @@
284280 io_on.stop = s->io[i].res->end;
285281
286282 s->ops->set_io_map(s, &io_off);
287
- mdelay(40);
283
+ msleep(40);
288284 s->ops->set_io_map(s, &io_on);
289285 }
290286 unlock:
....@@ -567,7 +563,7 @@
567563 !(flags & CONF_ENABLE_PULSE_IRQ))
568564 option |= COR_LEVEL_REQ;
569565 pcmcia_write_cis_mem(s, 1, (base + CISREG_COR)>>1, 1, &option);
570
- mdelay(40);
566
+ msleep(40);
571567 }
572568 if (p_dev->config_regs & PRESENT_STATUS)
573569 pcmcia_write_cis_mem(s, 1, (base + CISREG_CCSR)>>1, 1, &status);