lkml.org 
[lkml]   [2005]   [Oct]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[RFC patch 3/3] remove pci_driver.owner and .name fields
    This is the final cleanup : deletion of pci_driver.name and .owner
    happens now.

    Signed-off-by: Laurent Riffard <laurent.riffard@free.fr>
    --

    drivers/pci/pci-driver.c | 5 -----
    include/linux/pci.h | 8 --------
    2 files changed, 13 deletions(-)

    Index: linux-2.6-stable/drivers/pci/pci-driver.c
    ===================================================================
    --- linux-2.6-stable.orig/drivers/pci/pci-driver.c
    +++ linux-2.6-stable/drivers/pci/pci-driver.c
    @@ -339,11 +339,6 @@
    int error;

    /* initialize common driver fields */
    - if (drv->name) {
    - /* backward compatibility until all pci_driver are converted to
    - * use pci_driver.driver.name instead of pci_driver.name */
    - drv->driver.name = drv->name;
    - }
    drv->driver.bus = &pci_bus_type;
    drv->driver.probe = pci_device_probe;
    drv->driver.remove = pci_device_remove;
    Index: linux-2.6-stable/include/linux/pci.h
    ===================================================================
    --- linux-2.6-stable.orig/include/linux/pci.h
    +++ linux-2.6-stable/include/linux/pci.h
    @@ -664,14 +664,6 @@
    struct module;
    struct pci_driver {
    struct list_head node;
    - /*
    - * Please do not use the 2 following fields, they are planned for
    - * deletion.
    - * Use driver.name instead of .name.
    - * The field driver.owner will be set by pci_register_driver.
    - */
    - char *name;
    - struct module *owner;
    const struct pci_device_id *id_table; /* must be non-NULL for probe to be called */
    int (*probe) (struct pci_dev *dev, const struct pci_device_id *id); /* New device inserted */
    void (*remove) (struct pci_dev *dev); /* Device removed (NULL if not a hot-plug capable driver) */
    --

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-10-26 22:58    [W:3.489 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site