Skip to content

Commit

Permalink
arm ide breakage
Browse files Browse the repository at this point in the history
a) semicolon before the function body is a bad idea
b) it's const struct foo, not struct const foo
c) incidentally, it's ecard_remove_driver(), not ecard_unregister_driver()
d) compiling is occasionally useful.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Al Viro authored and Linus Torvalds committed Oct 26, 2008
1 parent ce97e13 commit 1137fb6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions drivers/ide/icside.c
Original file line number Diff line number Diff line change
Expand Up @@ -690,9 +690,9 @@ static int __init icside_init(void)
return ecard_register_driver(&icside_driver);
}

static void __exit icside_exit(void);
static void __exit icside_exit(void)
{
ecard_unregister_driver(&icside_driver);
ecard_remove_driver(&icside_driver);
}

MODULE_AUTHOR("Russell King <rmk@arm.linux.org.uk>");
Expand Down
4 changes: 2 additions & 2 deletions drivers/ide/rapide.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#include <asm/ecard.h>

static struct const ide_port_info rapide_port_info = {
static const struct ide_port_info rapide_port_info = {
.host_flags = IDE_HFLAG_MMIO | IDE_HFLAG_NO_DMA,
};

Expand Down Expand Up @@ -97,7 +97,7 @@ static int __init rapide_init(void)

static void __exit rapide_exit(void)
{
ecard_unregister_driver(&rapide_driver);
ecard_remove_driver(&rapide_driver);
}

MODULE_LICENSE("GPL");
Expand Down

0 comments on commit 1137fb6

Please sign in to comment.