Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 96297aee authored by Bhumika Goyal's avatar Bhumika Goyal Committed by David S. Miller
Browse files

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: default avatarBhumika Goyal <bhumirks@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent da095587
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -300,7 +300,7 @@ static const struct ide_port_ops palm_bk3710_ports_ops = {
	.cable_detect		= palm_bk3710_cable_detect,
};

static struct ide_port_info palm_bk3710_port_info = {
static struct ide_port_info palm_bk3710_port_info __initdata = {
	.init_dma		= palm_bk3710_init_dma,
	.port_ops		= &palm_bk3710_ports_ops,
	.dma_ops		= &sff_dma_ops,