Commit 664093bb authored by Jan Beulich's avatar Jan Beulich Committed by David Vrabel

xen-pciback: drop rom_init()

It is now identical to bar_init().
Signed-off-by: default avatarJan Beulich <jbeulich@suse.com>
Signed-off-by: default avatarDavid Vrabel <david.vrabel@citrix.com>
parent 6c6e4caa
...@@ -252,18 +252,6 @@ static void *bar_init(struct pci_dev *dev, int offset) ...@@ -252,18 +252,6 @@ static void *bar_init(struct pci_dev *dev, int offset)
return bar; return bar;
} }
static void *rom_init(struct pci_dev *dev, int offset)
{
struct pci_bar_info *bar = kzalloc(sizeof(*bar), GFP_KERNEL);
if (!bar)
return ERR_PTR(-ENOMEM);
read_dev_bar(dev, bar, offset);
return bar;
}
static void bar_reset(struct pci_dev *dev, int offset, void *data) static void bar_reset(struct pci_dev *dev, int offset, void *data)
{ {
struct pci_bar_info *bar = data; struct pci_bar_info *bar = data;
...@@ -382,7 +370,7 @@ static const struct config_field header_common[] = { ...@@ -382,7 +370,7 @@ static const struct config_field header_common[] = {
{ \ { \
.offset = reg_offset, \ .offset = reg_offset, \
.size = 4, \ .size = 4, \
.init = rom_init, \ .init = bar_init, \
.reset = bar_reset, \ .reset = bar_reset, \
.release = bar_release, \ .release = bar_release, \
.u.dw.read = bar_read, \ .u.dw.read = bar_read, \
......
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