Skip to content

Commit

Permalink
Input: sparkspkr - move remove() functions to .devexit.text
Browse files Browse the repository at this point in the history
The function bbc_remove and grover_remove are used only wrapped
by __devexit_p so define it using __devexit.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
Uwe Kleine-König authored and Dmitry Torokhov committed Oct 6, 2009
1 parent 3bfb0a7 commit 9e0af8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/input/misc/sparcspkr.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ static int __devinit bbc_beep_probe(struct of_device *op, const struct of_device
return err;
}

static int bbc_remove(struct of_device *op)
static int __devexit bbc_remove(struct of_device *op)
{
struct sparcspkr_state *state = dev_get_drvdata(&op->dev);
struct input_dev *input_dev = state->input_dev;
Expand Down Expand Up @@ -308,7 +308,7 @@ static int __devinit grover_beep_probe(struct of_device *op, const struct of_dev
return err;
}

static int grover_remove(struct of_device *op)
static int __devexit grover_remove(struct of_device *op)
{
struct sparcspkr_state *state = dev_get_drvdata(&op->dev);
struct grover_beep_info *info = &state->u.grover;
Expand Down

0 comments on commit 9e0af8a

Please sign in to comment.