hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/drivers/net/ethernet/sfc/mtd.c
....@@ -1,11 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /****************************************************************************
23 * Driver for Solarflare network controllers and boards
34 * Copyright 2005-2006 Fen Systems Ltd.
45 * Copyright 2006-2013 Solarflare Communications Inc.
5
- *
6
- * This program is free software; you can redistribute it and/or modify it
7
- * under the terms of the GNU General Public License version 2 as published
8
- * by the Free Software Foundation, incorporated herein by reference.
96 */
107
118 #include <linux/module.h>
....@@ -66,6 +63,9 @@
6663
6764 part->mtd.writesize = 1;
6865
66
+ if (!(part->mtd.flags & MTD_NO_ERASE))
67
+ part->mtd.flags |= MTD_WRITEABLE;
68
+
6969 part->mtd.owner = THIS_MODULE;
7070 part->mtd.priv = efx;
7171 part->mtd.name = part->name;