From: Aaron Lu Date: Mon, 9 Sep 2013 00:27:12 +0000 (+0930) Subject: virtio_pci: pm: Use CONFIG_PM_SLEEP instead of CONFIG_PM X-Git-Tag: v3.12-rc1~85^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e266ece2178784a1027e04a56c8547dc51b15ce;p=pandora-kernel.git virtio_pci: pm: Use CONFIG_PM_SLEEP instead of CONFIG_PM The virtio_pci_freeze/restore are defined under CONFIG_PM but is used by SET_SYSTEM_SLEEP_PM_OPS macro, which is defined under CONFIG_PM_SLEEP. So if CONFIG_PM_SLEEP is not cofigured but CONFIG_PM_RUNTIME is, the following warning message appeared: drivers/virtio/virtio_pci.c:770:12: warning: ‘virtio_pci_freeze’ defined but not used [-Wunused-function] static int virtio_pci_freeze(struct device *dev) ^ drivers/virtio/virtio_pci.c:790:12: warning: ‘virtio_pci_restore’ defined but not used [-Wunused-function] static int virtio_pci_restore(struct device *dev) ^ Fix it by changing CONFIG_PM to CONFIG_PM_SLEEP. Signed-off-by: Aaron Lu Reviewed-by: Amit Shah Signed-off-by: Rusty Russell --- Reading git-diff-tree failed