diff options
-rw-r--r-- | arch/s390/include/asm/ccwdev.h | 1 | ||||
-rw-r--r-- | drivers/s390/cio/device.c | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/arch/s390/include/asm/ccwdev.h b/arch/s390/include/asm/ccwdev.h index 18f0a7580926..2a5419551176 100644 --- a/arch/s390/include/asm/ccwdev.h +++ b/arch/s390/include/asm/ccwdev.h | |||
@@ -192,6 +192,7 @@ extern void ccw_device_get_id(struct ccw_device *, struct ccw_dev_id *); | |||
192 | #define to_ccwdrv(n) container_of(n, struct ccw_driver, driver) | 192 | #define to_ccwdrv(n) container_of(n, struct ccw_driver, driver) |
193 | 193 | ||
194 | extern struct ccw_device *ccw_device_probe_console(void); | 194 | extern struct ccw_device *ccw_device_probe_console(void); |
195 | extern int ccw_device_force_console(void); | ||
195 | 196 | ||
196 | // FIXME: these have to go | 197 | // FIXME: these have to go |
197 | extern int _ccw_device_get_subchannel_number(struct ccw_device *); | 198 | extern int _ccw_device_get_subchannel_number(struct ccw_device *); |
diff --git a/drivers/s390/cio/device.c b/drivers/s390/cio/device.c index 64bd79ac25a7..3c57c1a18bb8 100644 --- a/drivers/s390/cio/device.c +++ b/drivers/s390/cio/device.c | |||
@@ -1789,6 +1789,15 @@ ccw_device_probe_console(void) | |||
1789 | return &console_cdev; | 1789 | return &console_cdev; |
1790 | } | 1790 | } |
1791 | 1791 | ||
1792 | static int ccw_device_pm_restore(struct device *dev); | ||
1793 | |||
1794 | int ccw_device_force_console(void) | ||
1795 | { | ||
1796 | if (!console_cdev_in_use) | ||
1797 | return -ENODEV; | ||
1798 | return ccw_device_pm_restore(&console_cdev.dev); | ||
1799 | } | ||
1800 | EXPORT_SYMBOL_GPL(ccw_device_force_console); | ||
1792 | 1801 | ||
1793 | const char *cio_get_console_cdev_name(struct subchannel *sch) | 1802 | const char *cio_get_console_cdev_name(struct subchannel *sch) |
1794 | { | 1803 | { |