Skip to contentSkip to conversation

Char: cyclades, fix isa+module build

PATCH In review Jiri Slaby 2 participants 2 messages Jun 28, 2009 Char and misc drivers

lore
Share & tools
lore

Jiri Slaby

author
#0 lore raw

PATCH 1/1 Char: cyclades, fix isa+module build

When CONFIG_ISA and MODULES is turned on, a build will fail with the following error:
drivers/char/cyclades.c:3332: error: assignment of read-only location

Deconstify that particular isa structure.

---
 drivers/char/cyclades.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/char/cyclades.c +1 -1
index 5cec450..dbfa8b5 100644
@@ -143,7 +143,7 @@ static struct tty_driver *cy_serial_driver;
    causing problems, remove the offending address from this table.
 */
 
-static const unsigned int cy_isa_addresses[] = {
+static unsigned int cy_isa_addresses[] = {
 	0xD0000,
 	0xD2000,
 	0xD4000,
Signature · 1 line
1.6.3.2
#1 lore raw
Quoted 5 lines · On Sun, 28 Jun 2009 15:13:42 +0200 Jiri Slaby <[email protected]> wrote:

When CONFIG_ISA and MODULES is turned on, a build will fail with the following error:
drivers/char/cyclades.c:3332: error: assignment of read-only location

Deconstify that particular isa structure.

Already fixed

Alan