linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* ppc4xx_pm.c
@ 2002-06-11  4:39 David Gibson
  0 siblings, 0 replies; only message in thread
From: David Gibson @ 2002-06-11  4:39 UTC (permalink / raw)
  To: Armin Kuster; +Cc: linuxppc-embedded, Paul Mackerras


I've just been looking at this file.  As far as I can tell it's almost
completely pointless.  First most of the interesting stuff is only
enabled with CONFIG_APM, which is an x86 specific config option,
instead of CONFIG_PM.  If CONFIG_APM ever was defined it wouldn't
compile.  Second the callback function registered by pm_register()
does nothing except demultiplex the power management callback, we have
no default power management stuff.  The only thing which uses it is
the GPIO driver.  Anything which wants to do power management might as
well call pm_register() directly itself.

The only function with any use at all is ppc4xx_pm_init(), which
should probably move into ppc4xx_setup.c.  Also a bunch of the #ifdefs
could be removed from it - just turn most things off here, then the
driver can turn them back on when it starts.

--
David Gibson			| For every complex problem there is a
david@gibson.dropbear.id.au	| solution which is simple, neat and
				| wrong.  -- H.L. Mencken
http://www.ozlabs.org/people/dgibson

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

only message in thread, other threads:[~2002-06-11  4:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-11  4:39 ppc4xx_pm.c David Gibson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).