[MTD] maps/plat-ram.c: Initialize owner in device_driver struct
authorBen Dooks <ben@simtec.co.uk>
Mon, 10 Oct 2005 00:51:30 +0000 (01:51 +0100)
committerThomas Gleixner <tglx@mtd.linutronix.de>
Sun, 6 Nov 2005 22:09:49 +0000 (23:09 +0100)
Added .owner initialisation to allow the
tracking of the device_driver owners when
built as a module

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/mtd/maps/plat-ram.c

index 104576b5be3480cf238f1f4c3ac0a6c9bbfeca8f..acdf9f7157752e991df27c43ba8bd0422c8573f7 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generic platfrom device based RAM map
  *
- * $Id: plat-ram.c,v 1.3 2005/03/19 22:41:27 gleixner Exp $
+ * $Id: plat-ram.c,v 1.4 2005/10/10 00:51:26 bjd Exp $
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -254,6 +254,7 @@ static int platram_probe(struct device *dev)
 
 static struct device_driver platram_driver = {
        .name           = "mtd-ram",
+       .owner          = THIS_MODULE,
        .bus            = &platform_bus_type,
        .probe          = platram_probe,
        .remove         = platram_remove,