| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /**************************************************************************** |
|---|
| 2 | 3 | * Driver for Solarflare network controllers and boards |
|---|
| 3 | 4 | * Copyright 2005-2006 Fen Systems Ltd. |
|---|
| 4 | 5 | * 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. |
|---|
| 9 | 6 | */ |
|---|
| 10 | 7 | |
|---|
| 11 | 8 | #include <linux/module.h> |
|---|
| .. | .. |
|---|
| 66 | 63 | |
|---|
| 67 | 64 | part->mtd.writesize = 1; |
|---|
| 68 | 65 | |
|---|
| 66 | + if (!(part->mtd.flags & MTD_NO_ERASE)) |
|---|
| 67 | + part->mtd.flags |= MTD_WRITEABLE; |
|---|
| 68 | + |
|---|
| 69 | 69 | part->mtd.owner = THIS_MODULE; |
|---|
| 70 | 70 | part->mtd.priv = efx; |
|---|
| 71 | 71 | part->mtd.name = part->name; |
|---|