Skip to content

Commit

Permalink
backlight: move hp680-bl's probe function to .devinit.text
Browse files Browse the repository at this point in the history
A pointer to hp680bl_probe is passed to the core via
platform_driver_register and so the function must not disappear when the
.init sections are discarded.  Otherwise (if also having HOTPLUG=y)
unbinding and binding a device to the driver via sysfs will result in an
oops as does a device being registered late.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Kristoffer Ericson <Kristoffer.Ericson@gmail.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
  • Loading branch information
Uwe Kleine-König authored and Richard Purdie committed Sep 7, 2009
1 parent 1e9bd94 commit 156ff0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/backlight/hp680_bl.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ static struct backlight_ops hp680bl_ops = {
.update_status = hp680bl_set_intensity,
};

static int __init hp680bl_probe(struct platform_device *pdev)
static int __devinit hp680bl_probe(struct platform_device *pdev)
{
struct backlight_device *bd;

Expand Down

0 comments on commit 156ff0d

Please sign in to comment.