kill sysdata
PATCH 1/1 kill sysdata
We don't really need parisc_device->sysdata any more. This patch kill off all references to it. Comments?
Index: drivers/parisc/dino.c
===================================================================
RCS file: /var/cvs/linux-2.6/drivers/parisc/dino.c,v retrieving revision 1.10
parisc/dino.c +1 -1
@@ -555,7 +555,7 @@ dino_fixup_bus(struct pci_bus *bus)struct dino_device *dino_dev =DINO_DEV (parisc_walk_tree (bus->dev));int port_base =HBA_PORT_BASE (dino_dev->hba.hba_num); -DBG (KERN_WARNING "%s(0x%p) bus %d sysdata 0x%p\n" , +DBG (KERN_WARNING "%s(0x%p) bus %d platform_data 0x%p\n" , __FUNCTION__, bus, bus->secondary, bus->dev->platform_data);/* Firmware doesn't set up card-mode dino, so we have to */
Index: drivers/parisc/lba_pci.c
===================================================================
RCS file: /var/cvs/linux-2.6/drivers/parisc/lba_pci.c,v retrieving revision 1.5
parisc/lba_pci.c +1 -1
@@ -701,7 +701,7 @@ lba_fixup_bus(struct pci_bus *bus)struct lba_device *ldev =LBA_DEV (parisc_walk_tree (bus->dev));int lba_portbase =HBA_PORT_BASE (ldev->hba.hba_num); -DBG ("lba_fixup_bus(0x%p) bus %d sysdata 0x%p\n" , +DBG ("lba_fixup_bus(0x%p) bus %d platform_data 0x%p\n" , bus, bus->secondary, bus->dev->platform_data);/*
Index: drivers/parisc/sba_iommu.c
===================================================================
RCS file: /var/cvs/linux-2.6/drivers/parisc/sba_iommu.c,v retrieving revision 1.4
parisc/sba_iommu.c +2 -2
@@ -1989,7 +1989,7 @@ sba_driver_callback(struct parisc_devicereturn (1 ); } - dev->sysdata = (void *) sba_dev; + dev->dev.driver_data = sba_dev;memset (sba_dev,0 ,sizeof (struct sba_device ));for (i=0 ; i<MAX_IOC ; i++)
@@ -2042,7 +2042,7 @@ void __init sba_init(void)*/ void *sba_get_iommu (struct parisc_device *pci_hba) { -struct sba_device *sba = (struct sba_device *) pci_hba->parent->sysdata; +struct sba_device *sba = pci_hba->parent->dev.driver_data;char t = pci_hba->parent->id.hw_type;int iocnum = (pci_hba->hw_path >>3 );/* rope # */
Index: include/asm-parisc/parisc-device.h
===================================================================
RCS file: /var/cvs/linux-2.6/include/asm-parisc/parisc-device.h,v retrieving revision 1.1
asm-parisc/parisc-device.h +0 -1
@@ -7,7 +7,6 @@ struct parisc_device {struct parisc_device *sibling;struct parisc_device *child;struct parisc_driver *driver;/* Driver for this device */ -void *sysdata;/* Driver instance private data */ char name[80 ];/* The hardware description */ int irq;
Index: include/asm-parisc/pci.h
===================================================================
RCS file: /var/cvs/linux-2.6/include/asm-parisc/pci.h,v retrieving revision 1.2
asm-parisc/pci.h +1 -1
@@ -42,7 +42,7 @@** ** This is the "common" or "base" data structure which HBA drivers ** (eg Dino or LBA) are required to place at the top of their own -** dev->sysdata structure. I've heard this called "C inheritance" too. +** platform_data structure. I've heard this called "C inheritance" too. ** ** Data needed by pcibios layer belongs here. */
Signature · 3 lines
"It's not Hollywood. War is real, war is primarily not about defeat or victory, it is about death. I've seen thousands and thousands of dead bodies. Do you think I want to have an academic debate on this subject?" -- Robert Fisk