diff options
| author | Arnd Bergmann <[email protected]> | 2023-08-01 12:58:15 +0200 |
|---|---|---|
| committer | Andi Shyti <[email protected]> | 2023-08-08 15:36:54 +0200 |
| commit | 54e73cd52250adeba836cd3afef3658b48ae8dc9 (patch) | |
| tree | ef64af52fa3cdf107055312cadafa65403c9d8d5 /include | |
| parent | ea738c06a9d249f08d0cb49ccec90f611b81d1cc (diff) | |
virtio: Remove PM #ifdef guards to fix i2c driver
A cleanup in the virtio i2c caused a build failure:
drivers/i2c/busses/i2c-virtio.c:270:10: error: 'struct virtio_driver' has no member named 'freeze'
drivers/i2c/busses/i2c-virtio.c:271:10: error: 'struct virtio_driver' has no member named 'restore'
Change the structure definition to allow this cleanup to
be applied everywhere.
Fixes: 73d546c76235b ("i2c: virtio: Remove #ifdef guards for PM related functions")
Signed-off-by: Arnd Bergmann <[email protected]>
Reviewed-by: Paul Cercueil <[email protected]>
Reviewed-by: Andi Shyti <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Andi Shyti <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/virtio.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/virtio.h b/include/linux/virtio.h index de6041deee37..7ed071b5ef07 100644 --- a/include/linux/virtio.h +++ b/include/linux/virtio.h @@ -184,10 +184,8 @@ struct virtio_driver { void (*scan)(struct virtio_device *dev); void (*remove)(struct virtio_device *dev); void (*config_changed)(struct virtio_device *dev); -#ifdef CONFIG_PM int (*freeze)(struct virtio_device *dev); int (*restore)(struct virtio_device *dev); -#endif }; static inline struct virtio_driver *drv_to_virtio(struct device_driver *drv) |