mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* pm: remove obsolete pm_* from vt.c
@ 2005-03-19 11:11 Pavel Machek
  0 siblings, 0 replies; only message in thread
From: Pavel Machek @ 2005-03-19 11:11 UTC (permalink / raw)
  To: Andrew Morton, kernel list

Hi!

Those functions are useless these days, and should be gone... Please apply,

								Pavel

Signed-off-by: Pavel Machek <pavel@suse.cz>

--- clean/drivers/char/vt.c	2005-03-19 00:31:21.000000000 +0100
+++ linux/drivers/char/vt.c	2005-03-19 00:37:26.000000000 +0100
@@ -221,9 +221,6 @@
 #define DO_UPDATE(vc)	CON_IS_VISIBLE(vc)
 #endif
 
-static int pm_con_request(struct pm_dev *dev, pm_request_t rqst, void *data);
-static struct pm_dev *pm_con;
-
 static inline unsigned short *screenpos(struct vc_data *vc, int offset, int viewed)
 {
 	unsigned short *p;
@@ -723,12 +720,6 @@
 	    }
 	    vc->vc_kmalloced = 1;
 	    vc_init(vc, vc->vc_rows, vc->vc_cols, 1);
-
-	    if (!pm_con) {
-		    pm_con = pm_register(PM_SYS_DEV,
-					 PM_SYS_VGA,
-					 pm_con_request);
-	    }
 	}
 	return 0;
 }
@@ -3218,24 +3209,6 @@
 	}
 }
 
-static int pm_con_request(struct pm_dev *dev, pm_request_t rqst, void *data)
-{
-	switch (rqst)
-	{
-	case PM_RESUME:
-		acquire_console_sem();
-		unblank_screen();
-		release_console_sem();
-		break;
-	case PM_SUSPEND:
-		acquire_console_sem();
-		do_blank_screen(0);
-		release_console_sem();
-		break;
-	}
-	return 0;
-}
-
 /*
  *	Visible symbols for modules
  */

-- 
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-03-19 11:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-19 11:11 pm: remove obsolete pm_* from vt.c Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®