Skip to content

Commit

Permalink
video: platinumfb: Add __devexit_p at necessary place
Browse files Browse the repository at this point in the history
According to the comments in include/linux/init.h:

"Pointers to __devexit functions must use __devexit_p(function_name), the
wrapper will insert either the function_name or NULL, depending on the config
options."

We have __devexit annotation for platinumfb_remove(), thus add __devexit_p at
necessary place.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
  • Loading branch information
Axel Lin authored and Florian Tobias Schandinat committed Oct 15, 2011
1 parent ef26b79 commit b57287b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/platinumfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ static struct platform_driver platinum_driver =
.of_match_table = platinumfb_match,
},
.probe = platinumfb_probe,
.remove = platinumfb_remove,
.remove = __devexit_p(platinumfb_remove),
};

static int __init platinumfb_init(void)
Expand Down

0 comments on commit b57287b

Please sign in to comment.