Skip to content

Commit

Permalink
[MFD] Fix gcc4 build errors in ucb1x00-core.c
Browse files Browse the repository at this point in the history
drivers/mfd/ucb1x00-core.c:555: error: static declaration of 'ucb1x00_class' follows non-static declaration
drivers/mfd/ucb1x00.h:109: error: previous declaration of 'ucb1x00_class' was here

Since ucb1x00_class isn't used by anything, remove the extern
declaration and the symbol export.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Russell King authored and Russell King committed Oct 6, 2005
1 parent c075814 commit a448a28
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions drivers/mfd/ucb1x00-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -642,8 +642,6 @@ static void __exit ucb1x00_exit(void)
module_init(ucb1x00_init);
module_exit(ucb1x00_exit);

EXPORT_SYMBOL(ucb1x00_class);

EXPORT_SYMBOL(ucb1x00_io_set_dir);
EXPORT_SYMBOL(ucb1x00_io_write);
EXPORT_SYMBOL(ucb1x00_io_read);
Expand Down
2 changes: 0 additions & 2 deletions drivers/mfd/ucb1x00.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,6 @@ struct ucb1x00_irq {
void (*fn)(int, void *);
};

extern struct class ucb1x00_class;

struct ucb1x00 {
spinlock_t lock;
struct mcp *mcp;
Expand Down

0 comments on commit a448a28

Please sign in to comment.