eeepc-laptop: Properly annote eeepc_enable_camera().
authorRakib Mullick <rakib.mullick@gmail.com>
Mon, 12 Oct 2009 22:13:32 +0000 (00:13 +0200)
committerLen Brown <len.brown@intel.com>
Tue, 13 Oct 2009 05:24:40 +0000 (01:24 -0400)
commitdcb73eed70575c68f1389f7fac7cbd0feaeb50f3
tree1efe226892b8c2a2471ddba335c06b9ee666b594
parent161291396e76e0832c08f617eb9bd364d1648148
eeepc-laptop: Properly annote eeepc_enable_camera().

Currently the annotation for function eeepc_enable_camera() is
__init, and refers to a
function eeepc_hotk_add() which is non-init. Use __devinit for both
functions which is
more appropriate and fixes a section mismatch warning.

 We were warned by the following warning:

  LD      drivers/platform/x86/built-in.o
WARNING: drivers/platform/x86/built-in.o(.text+0x12e1): Section
mismatch in reference from the function eeepc_hotk_add() to the
function .init.text:eeepc_enable_camera()
The function eeepc_hotk_add() references
the function __init eeepc_enable_camera().
This is often because eeepc_hotk_add lacks a __init
annotation or the annotation of eeepc_enable_camera is wrong.

Signed-off-by: Rakib Mullick <rakib.mullick@gmail.com>
Signed-off-by: Corentin Chary <corentincj@iksaif.net>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/platform/x86/eeepc-laptop.c