Commit c17db640 authored by Rikard Falkeborn's avatar Rikard Falkeborn Committed by Boris Ostrovsky

xen-platform: Constify dev_pm_ops

dev_pm_ops is never modified, so mark it const to allow the compiler to
put it in read-only memory.

Before:
   text    data     bss     dec     hex filename
   2457    1668     256    4381    111d drivers/xen/platform-pci.o

After:
   text    data     bss     dec     hex filename
   2681    1444     256    4381    111d drivers/xen/platform-pci.o
Signed-off-by: default avatarRikard Falkeborn <rikard.falkeborn@gmail.com>
Link: https://lore.kernel.org/r/20200509134755.15038-1-rikard.falkeborn@gmail.comReviewed-by: default avatarJuergen Gross <jgross@suse.com>
Signed-off-by: default avatarBoris Ostrovsky <boris.ostrovsky@oracle.com>
parent c8d70a29
...@@ -168,7 +168,7 @@ static const struct pci_device_id platform_pci_tbl[] = { ...@@ -168,7 +168,7 @@ static const struct pci_device_id platform_pci_tbl[] = {
{0,} {0,}
}; };
static struct dev_pm_ops platform_pm_ops = { static const struct dev_pm_ops platform_pm_ops = {
.resume_noirq = platform_pci_resume, .resume_noirq = platform_pci_resume,
}; };
......
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