From: Brian Norris Date: Thu, 6 Dec 2012 07:44:20 +0000 (-0800) Subject: ahci_platform: make structs static X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=071d3ad37485a82e0543a503272c45cdd32053dd;p=openwrt%2Fstaging%2Fblogic.git ahci_platform: make structs static These structs are used only for ahci_platform.c, so they should be static. Thanks to Fengguang for the (automated) suggestion. Signed-off-by: Brian Norris Cc: Fengguang Wu Signed-off-by: Jeff Garzik --- diff --git a/drivers/ata/ahci_platform.c b/drivers/ata/ahci_platform.c index 1d90690d85f7..1cc467bdb63d 100644 --- a/drivers/ata/ahci_platform.c +++ b/drivers/ata/ahci_platform.c @@ -49,12 +49,12 @@ static struct platform_device_id ahci_devtype[] = { }; MODULE_DEVICE_TABLE(platform, ahci_devtype); -struct ata_port_operations ahci_platform_ops = { +static struct ata_port_operations ahci_platform_ops = { .inherits = &ahci_ops, .host_stop = ahci_host_stop, }; -struct ata_port_operations ahci_platform_retry_srst_ops = { +static struct ata_port_operations ahci_platform_retry_srst_ops = { .inherits = &ahci_pmp_retry_srst_ops, .host_stop = ahci_host_stop, }; @@ -323,7 +323,7 @@ disable_unprepare_clk: } #endif -SIMPLE_DEV_PM_OPS(ahci_pm_ops, ahci_suspend, ahci_resume); +static SIMPLE_DEV_PM_OPS(ahci_pm_ops, ahci_suspend, ahci_resume); static const struct of_device_id ahci_of_match[] = { { .compatible = "snps,spear-ahci", },