]> git.baikalelectronics.ru Git - kernel.git/commit
ide: palm_bk3710: add __initdata to palm_bk3710_port_info
authorBhumika Goyal <bhumirks@gmail.com>
Fri, 30 Dec 2016 09:20:02 +0000 (14:50 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Feb 2017 01:43:26 +0000 (20:43 -0500)
commitb4be63e18a31eca0052bfb510f44c1f0933a3f5f
tree313ff4b3127550c1bb993c3d85c8fe4a7f2b188f
parenta24e2f8b89abab96e05c74da039754e0e3f1e5c6
ide: palm_bk3710: add __initdata to palm_bk3710_port_info

The object palm_bk3710_port_info of type ide_port_info is never
referenced anywhere after initialization by palm_bk3710_probe. It is
also passed as a parameter to ide_host_add which is called from the init
function but this call doesn't store the object reference anywhere, and
it only dereferences the values of the fields. Therefore add __initdata
to its declaration.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ide/palm_bk3710.c