hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/drivers/char/nwflash.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Flash memory interface rev.5 driver for the Intel
34 * Flash chips used on the NetWinder.
....@@ -167,7 +168,7 @@
167168 if (count > gbFlashSize - p)
168169 count = gbFlashSize - p;
169170
170
- if (!access_ok(VERIFY_READ, buf, count))
171
+ if (!access_ok(buf, count))
171172 return -EFAULT;
172173
173174 /*
....@@ -575,7 +576,7 @@
575576
576577 static struct miscdevice flash_miscdev =
577578 {
578
- FLASH_MINOR,
579
+ NWFLASH_MINOR,
579580 "nwflash",
580581 &flash_fops
581582 };