mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 04:33:26 +02:00
PM: rewrite is_hibernate_resume_dev to not require an inode
Just check the dev_t to help simplifying the code. Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
committed by
Jens Axboe
parent
ef16e1d98c
commit
bb3247a399
@@ -473,9 +473,9 @@ static inline int hibernate_quiet_exec(int (*func)(void *data), void *data) {
|
||||
#endif /* CONFIG_HIBERNATION */
|
||||
|
||||
#ifdef CONFIG_HIBERNATION_SNAPSHOT_DEV
|
||||
int is_hibernate_resume_dev(const struct inode *);
|
||||
int is_hibernate_resume_dev(dev_t dev);
|
||||
#else
|
||||
static inline int is_hibernate_resume_dev(const struct inode *i) { return 0; }
|
||||
static inline int is_hibernate_resume_dev(dev_t dev) { return 0; }
|
||||
#endif
|
||||
|
||||
/* Hibernation and suspend events */
|
||||
|
Reference in New Issue
Block a user