Re: [RFC PATCH v10 5/7] PCI: Make pci_platform_pm_ops's callbacks optional

2017-11-08 Thread Rafael J. Wysocki
On Friday, October 27, 2017 9:26:10 AM CET Jeffy Chen wrote: > Allow platforms not to provide some of the pci_platform_pm_ops's > callbacks. So? What exactly is wrong with having empty ops in there? Is it really better to have everyone do extra checks every time an op is invoked even when all of

[RFC PATCH v10 5/7] PCI: Make pci_platform_pm_ops's callbacks optional

2017-10-27 Thread Jeffy Chen
Allow platforms not to provide some of the pci_platform_pm_ops's callbacks. Also change the return value from -ENOSYS to -ENODEV for: warning: drivers/pci/pci.c,594: ENOSYS means 'invalid syscall nr' and nothing else Signed-off-by: Jeffy Chen --- Changes in v10: None Changes in v9: None Change