Re: [patch 5/5] TI OMAP driver

From: Eric Piel
Date: Wed Oct 19 2005 - 04:46:59 EST


10/19/2005 10:19 AM, dsaxena@xxxxxxxxxxx wrote/a Ãcrit:
This patch implements the OMAP RNG driver.

Signed-off-by: Deepak Saxena <dsaxena@xxxxxxxxxxx>

---

Builts but untested as I do not hardware.

Index: linux-omap-2.6/drivers/char/rng/omap-rng.c
===================================================================
--- /dev/null
+++ linux-omap-2.6/drivers/char/rng/omap-rng.c

+#ifdef CONFIG_PM
+
+static int omap_rng_suspend(struct device *dev, pm_message_t message, u32 level)
+{
+ omap_rng_write_reg(RNG_MASK_REG, 0x0);
+
+ return 0;
+}
+
+static int omap_rng_suspend(struct device *dev, pm_message_t message, u32 level)
+{
+ omap_rng_write_reg(RNG_MASK_REG, 0x1);
+
+ return 1;
+}
Probably one of them should be called omap_rng_resume() ?

Eric
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/