Commit 5b457e39 authored by Mark Brown's avatar Mark Brown

regmap: Remove redundant owner field from the bus type struct

No longer used as users link directly with the bus types so the core
module infrastructure does refcounting for us.
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent a7ace561
...@@ -93,7 +93,6 @@ static struct regmap_bus regmap_i2c = { ...@@ -93,7 +93,6 @@ static struct regmap_bus regmap_i2c = {
.write = regmap_i2c_write, .write = regmap_i2c_write,
.gather_write = regmap_i2c_gather_write, .gather_write = regmap_i2c_gather_write,
.read = regmap_i2c_read, .read = regmap_i2c_read,
.owner = THIS_MODULE,
}; };
/** /**
......
...@@ -50,7 +50,6 @@ static struct regmap_bus regmap_spi = { ...@@ -50,7 +50,6 @@ static struct regmap_bus regmap_spi = {
.write = regmap_spi_write, .write = regmap_spi_write,
.gather_write = regmap_spi_gather_write, .gather_write = regmap_spi_gather_write,
.read = regmap_spi_read, .read = regmap_spi_read,
.owner = THIS_MODULE,
.read_flag_mask = 0x80, .read_flag_mask = 0x80,
}; };
......
...@@ -85,8 +85,6 @@ typedef int (*regmap_hw_read)(struct device *dev, ...@@ -85,8 +85,6 @@ typedef int (*regmap_hw_read)(struct device *dev,
* if not implemented on a given device. * if not implemented on a given device.
* @read: Read operation. Data is returned in the buffer used to transmit * @read: Read operation. Data is returned in the buffer used to transmit
* data. * 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 * @read_flag_mask: Mask to be set in the top byte of the register when doing
* a read. * a read.
*/ */
...@@ -94,7 +92,6 @@ struct regmap_bus { ...@@ -94,7 +92,6 @@ struct regmap_bus {
regmap_hw_write write; regmap_hw_write write;
regmap_hw_gather_write gather_write; regmap_hw_gather_write gather_write;
regmap_hw_read read; regmap_hw_read read;
struct module *owner;
u8 read_flag_mask; u8 read_flag_mask;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment