Commit 071d3ad3 authored by Brian Norris's avatar Brian Norris Committed by Jeff Garzik

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: default avatarBrian Norris <computersforpeace@gmail.com>
Cc: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent 11ace0c1
...@@ -49,12 +49,12 @@ static struct platform_device_id ahci_devtype[] = { ...@@ -49,12 +49,12 @@ static struct platform_device_id ahci_devtype[] = {
}; };
MODULE_DEVICE_TABLE(platform, 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, .inherits = &ahci_ops,
.host_stop = ahci_host_stop, .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, .inherits = &ahci_pmp_retry_srst_ops,
.host_stop = ahci_host_stop, .host_stop = ahci_host_stop,
}; };
...@@ -323,7 +323,7 @@ static int ahci_resume(struct device *dev) ...@@ -323,7 +323,7 @@ static int ahci_resume(struct device *dev)
} }
#endif #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[] = { static const struct of_device_id ahci_of_match[] = {
{ .compatible = "snps,spear-ahci", }, { .compatible = "snps,spear-ahci", },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment