xen-pciback: drop rom_init()
authorJan Beulich <JBeulich@suse.com>
Wed, 6 Jul 2016 06:57:07 +0000 (00:57 -0600)
committerDavid Vrabel <david.vrabel@citrix.com>
Wed, 6 Jul 2016 09:35:37 +0000 (10:35 +0100)
It is now identical to bar_init().

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
drivers/xen/xen-pciback/conf_space_header.c

index 258d99dd21518b6f4ca2f602e224aedb44a4c59e..5165c989beab408b1efbff1ff5ca62c995be1319 100644 (file)
@@ -252,18 +252,6 @@ static void *bar_init(struct pci_dev *dev, int offset)
        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)
 {
        struct pci_bar_info *bar = data;
@@ -382,7 +370,7 @@ static const struct config_field header_common[] = {
        {                                               \
        .offset     = reg_offset,                       \
        .size       = 4,                                \
-       .init       = rom_init,                         \
+       .init       = bar_init,                         \
        .reset      = bar_reset,                        \
        .release    = bar_release,                      \
        .u.dw.read  = bar_read,                         \