regmap: Remove redundant owner field from the bus type struct
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 5 Sep 2011 15:12:05 +0000 (08:12 -0700)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 5 Sep 2011 17:57:04 +0000 (10:57 -0700)
No longer used as users link directly with the bus types so the core
module infrastructure does refcounting for us.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/base/regmap/regmap-i2c.c
drivers/base/regmap/regmap-spi.c
include/linux/regmap.h

index e7d916d1b3ea2d2e31dd58355288111d728eead3..38621ec87c05bd0c13f2058380549a7ff4ac5b83 100644 (file)
@@ -93,7 +93,6 @@ static struct regmap_bus regmap_i2c = {
        .write = regmap_i2c_write,
        .gather_write = regmap_i2c_gather_write,
        .read = regmap_i2c_read,
-       .owner = THIS_MODULE,
 };
 
 /**
index cc0f1164cf99a0ac997144deb2217d6e28f1fd9d..14132b8290624c2b40b2390d9857c6e4b89da107 100644 (file)
@@ -50,7 +50,6 @@ static struct regmap_bus regmap_spi = {
        .write = regmap_spi_write,
        .gather_write = regmap_spi_gather_write,
        .read = regmap_spi_read,
-       .owner = THIS_MODULE,
        .read_flag_mask = 0x80,
 };
 
index 449e2642da9561df9c2c0a36a4a654695bb05bf0..9438a89e1573890b9308beb289563d61f0dfd46d 100644 (file)
@@ -85,8 +85,6 @@ typedef int (*regmap_hw_read)(struct device *dev,
  *                if not implemented  on a given device.
  * @read: Read operation.  Data is returned in the buffer used to transmit
  *         data.
- * @owner: Module with the bus implementation, used to pin the implementation
- *         in memory.
  * @read_flag_mask: Mask to be set in the top byte of the register when doing
  *                  a read.
  */
@@ -94,7 +92,6 @@ struct regmap_bus {
        regmap_hw_write write;
        regmap_hw_gather_write gather_write;
        regmap_hw_read read;
-       struct module *owner;
        u8 read_flag_mask;
 };