How to add suspend/resume functions to misc drivers?

Previous thread: [PATCH] new hwmon driver adt7462 by Darrick J. Wong on Tuesday, September 30, 2008 - 11:54 pm. (2 messages)

Next thread: none
From: Aras Vaichas
Date: Tuesday, September 30, 2008 - 11:59 pm

Hi,

I need to add suspend/resume functionality to a misc based driver.

Searching through the kernel for drivers that contain the keywords
"misc_register" and "suspend" I found that drivers/macintosh/via-pmu.c
seems to be what i was looking for.

Am I correct? Would this be the best example of adding suspend/resume
functionality to a misc driver?

background: my device driver is for an ARM at91rm9200 interfaced via the
static memory bus to an FPGA. Only one device ever exists in the system.
The driver is never removed during normal usage.

Aras

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________
--

Previous thread: [PATCH] new hwmon driver adt7462 by Darrick J. Wong on Tuesday, September 30, 2008 - 11:54 pm. (2 messages)

Next thread: none