aboutsummaryrefslogtreecommitdiff
path: root/sys/arm/freescale/fsl_ocotp.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arm/freescale/fsl_ocotp.c')
-rw-r--r--sys/arm/freescale/fsl_ocotp.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/arm/freescale/fsl_ocotp.c b/sys/arm/freescale/fsl_ocotp.c
index 606c4b54fe61..cf275f9da41b 100644
--- a/sys/arm/freescale/fsl_ocotp.c
+++ b/sys/arm/freescale/fsl_ocotp.c
@@ -1,5 +1,5 @@
/*-
- * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ * SPDX-License-Identifier: BSD-2-Clause
*
* Copyright (c) 2014 Steven Lawrance <stl@koffein.net>
* All rights reserved.
@@ -27,8 +27,6 @@
*/
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD$");
-
/*
* Access to the Freescale i.MX6 On-Chip One-Time-Programmable Memory
*/
@@ -81,7 +79,7 @@ fsl_ocotp_devmap(void)
ocotp_size = (vm_size_t)size;
- if ((ocotp_regs = pmap_mapdev((vm_offset_t)base, ocotp_size)) == NULL)
+ if ((ocotp_regs = pmap_mapdev((vm_paddr_t)base, ocotp_size)) == NULL)
goto fatal;
return;
@@ -135,7 +133,7 @@ ocotp_attach(device_t dev)
/* We're done with the temporary mapping now. */
if (ocotp_regs != NULL)
- pmap_unmapdev((vm_offset_t)ocotp_regs, ocotp_size);
+ pmap_unmapdev(ocotp_regs, ocotp_size);
err = 0;