All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/11] Remove unnecessary casts of pci_get_drvdata
@ 2010-11-15 20:13 ` Joe Perches
  0 siblings, 0 replies; 23+ messages in thread
From: Joe Perches @ 2010-11-15 20:13 UTC (permalink / raw)
  To: Jiri Kosina
  Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	linux-ide-u79uwXL29TY76Z2rM5mHXA,
	linux-media-u79uwXL29TY76Z2rM5mHXA,
	netdev-u79uwXL29TY76Z2rM5mHXA, linux-scsi-u79uwXL29TY76Z2rM5mHXA,
	devel-gWbeCf7V1WCQmaza687I9mD2FQJk+8+b,
	linux-usb-u79uwXL29TY76Z2rM5mHXA,
	alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw

Joe Perches (11):
  drivers/i2c/busses/i2c-nforce2.c: Remove unnecessary casts of pci_get_drvdata
  drivers/ide/pmac.c: Remove unnecessary casts of pci_get_drvdata
  drivers/media/dvb/ngene/ngene-core.c: Remove unnecessary casts of pci_get_drvdata
  drivers/misc/ibmasm/module.c: Remove unnecessary casts of pci_get_drvdata
  drivers/net/irda: Remove unnecessary casts of pci_get_drvdata
  drivers/net/s2io.c: Remove unnecessary casts of pci_get_drvdata
  drivers/net/vxge/vxge-main.c: Remove unnecessary casts of pci_get_drvdata
  drivers/scsi/be2iscsi/be_main.c: Remove unnecessary casts of pci_get_drvdata
  drivers/staging: Remove unnecessary casts of pci_get_drvdata
  drivers/usb/host/uhci-hcd.c: Remove unnecessary casts of pci_get_drvdata
  sound/pci/asihpi/hpioctl.c: Remove unnecessary casts of pci_get_drvdata

 drivers/i2c/busses/i2c-nforce2.c          |    2 +-
 drivers/ide/pmac.c                        |    4 ++--
 drivers/media/dvb/ngene/ngene-core.c      |    2 +-
 drivers/misc/ibmasm/module.c              |    2 +-
 drivers/net/irda/donauboe.c               |    6 +++---
 drivers/net/irda/vlsi_ir.c                |    2 +-
 drivers/net/s2io.c                        |    3 +--
 drivers/net/vxge/vxge-main.c              |   28 ++++++++++++----------------
 drivers/scsi/be2iscsi/be_main.c           |    2 +-
 drivers/staging/crystalhd/crystalhd_lnx.c |    6 +++---
 drivers/staging/et131x/et131x_initpci.c   |    2 +-
 drivers/staging/wlags49_h2/wl_pci.c       |    2 +-
 drivers/usb/host/uhci-hcd.c               |    2 +-
 sound/pci/asihpi/hpioctl.c                |    2 +-
 14 files changed, 30 insertions(+), 35 deletions(-)

-- 
1.7.3.1.g432b3.dirty

^ permalink raw reply	[flat|nested] 23+ messages in thread

* [PATCH 00/11] Remove unnecessary casts of pci_get_drvdata
@ 2010-11-15 20:13 ` Joe Perches
  0 siblings, 0 replies; 23+ messages in thread
From: Joe Perches @ 2010-11-15 20:13 UTC (permalink / raw)
  To: Jiri Kosina
  Cc: linux-i2c, linux-kernel, linux-ide, linux-media, netdev,
	linux-scsi, devel, linux-usb, alsa-devel

Joe Perches (11):
  drivers/i2c/busses/i2c-nforce2.c: Remove unnecessary casts of pci_get_drvdata
  drivers/ide/pmac.c: Remove unnecessary casts of pci_get_drvdata
  drivers/media/dvb/ngene/ngene-core.c: Remove unnecessary casts of pci_get_drvdata
  drivers/misc/ibmasm/module.c: Remove unnecessary casts of pci_get_drvdata
  drivers/net/irda: Remove unnecessary casts of pci_get_drvdata
  drivers/net/s2io.c: Remove unnecessary casts of pci_get_drvdata
  drivers/net/vxge/vxge-main.c: Remove unnecessary casts of pci_get_drvdata
  drivers/scsi/be2iscsi/be_main.c: Remove unnecessary casts of pci_get_drvdata
  drivers/staging: Remove unnecessary casts of pci_get_drvdata
  drivers/usb/host/uhci-hcd.c: Remove unnecessary casts of pci_get_drvdata
  sound/pci/asihpi/hpioctl.c: Remove unnecessary casts of pci_get_drvdata

 drivers/i2c/busses/i2c-nforce2.c          |    2 +-
 drivers/ide/pmac.c                        |    4 ++--
 drivers/media/dvb/ngene/ngene-core.c      |    2 +-
 drivers/misc/ibmasm/module.c              |    2 +-
 drivers/net/irda/donauboe.c               |    6 +++---
 drivers/net/irda/vlsi_ir.c                |    2 +-
 drivers/net/s2io.c                        |    3 +--
 drivers/net/vxge/vxge-main.c              |   28 ++++++++++++----------------
 drivers/scsi/be2iscsi/be_main.c           |    2 +-
 drivers/staging/crystalhd/crystalhd_lnx.c |    6 +++---
 drivers/staging/et131x/et131x_initpci.c   |    2 +-
 drivers/staging/wlags49_h2/wl_pci.c       |    2 +-
 drivers/usb/host/uhci-hcd.c               |    2 +-
 sound/pci/asihpi/hpioctl.c                |    2 +-
 14 files changed, 30 insertions(+), 35 deletions(-)

-- 
1.7.3.1.g432b3.dirty


^ permalink raw reply	[flat|nested] 23+ messages in thread

* [PATCH 01/11] drivers/i2c/busses/i2c-nforce2.c: Remove unnecessary casts of pci_get_drvdata
  2010-11-15 20:13 ` Joe Perches
  (?)
@ 2010-11-15 20:13 ` Joe Perches
  2010-11-15 21:06     ` Jean Delvare
  -1 siblings, 1 reply; 23+ messages in thread
From: Joe Perches @ 2010-11-15 20:13 UTC (permalink / raw)
  To: Jiri Kosina
  Cc: Jean Delvare (PC drivers, core), Ben Dooks (embedded platforms),
	linux-i2c, linux-kernel

Signed-off-by: Joe Perches <joe@perches.com>
---
 drivers/i2c/busses/i2c-nforce2.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/i2c/busses/i2c-nforce2.c b/drivers/i2c/busses/i2c-nforce2.c
index a605a50..ff1e127 100644
--- a/drivers/i2c/busses/i2c-nforce2.c
+++ b/drivers/i2c/busses/i2c-nforce2.c
@@ -432,7 +432,7 @@ static int __devinit nforce2_probe(struct pci_dev *dev, const struct pci_device_
 
 static void __devexit nforce2_remove(struct pci_dev *dev)
 {
-	struct nforce2_smbus *smbuses = (void*) pci_get_drvdata(dev);
+	struct nforce2_smbus *smbuses = pci_get_drvdata(dev);
 
 	nforce2_set_reference(NULL);
 	if (smbuses[0].base) {
-- 
1.7.3.1.g432b3.dirty


^ permalink raw reply related	[flat|nested] 23+ messages in thread

* [PATCH 02/11] drivers/ide/pmac.c: Remove unnecessary casts of pci_get_drvdata
  2010-11-15 20:13 ` Joe Perches
  (?)
  (?)
@ 2010-11-15 20:13 ` Joe Perches
  2010-11-22 19:38   ` David Miller
  -1 siblings, 1 reply; 23+ messages in thread
From: Joe Perches @ 2010-11-15 20:13 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: David S. Miller, linux-ide, linux-kernel

Signed-off-by: Joe Perches <joe@perches.com>
---
 drivers/ide/pmac.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/ide/pmac.c b/drivers/ide/pmac.c
index ebcf8e4..1db7c43 100644
--- a/drivers/ide/pmac.c
+++ b/drivers/ide/pmac.c
@@ -1334,7 +1334,7 @@ out_free_pmif:
 static int
 pmac_ide_pci_suspend(struct pci_dev *pdev, pm_message_t mesg)
 {
-	pmac_ide_hwif_t *pmif = (pmac_ide_hwif_t *)pci_get_drvdata(pdev);
+	pmac_ide_hwif_t *pmif = pci_get_drvdata(pdev);
 	int rc = 0;
 
 	if (mesg.event != pdev->dev.power.power_state.event
@@ -1350,7 +1350,7 @@ pmac_ide_pci_suspend(struct pci_dev *pdev, pm_message_t mesg)
 static int
 pmac_ide_pci_resume(struct pci_dev *pdev)
 {
-	pmac_ide_hwif_t *pmif = (pmac_ide_hwif_t *)pci_get_drvdata(pdev);
+	pmac_ide_hwif_t *pmif = pci_get_drvdata(pdev);
 	int rc = 0;
 
 	if (pdev->dev.power.power_state.event != PM_EVENT_ON) {
-- 
1.7.3.1.g432b3.dirty

^ permalink raw reply related	[flat|nested] 23+ messages in thread

* [PATCH 03/11] drivers/media/dvb/ngene/ngene-core.c: Remove unnecessary casts of pci_get_drvdata
  2010-11-15 20:13 ` Joe Perches
                   ` (2 preceding siblings ...)
  (?)
@ 2010-11-15 20:13 ` Joe Perches
  -1 siblings, 0 replies; 23+ messages in thread
From: Joe Perches @ 2010-11-15 20:13 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: Mauro Carvalho Chehab, linux-media, linux-kernel

Signed-off-by: Joe Perches <joe@perches.com>
---
 drivers/media/dvb/ngene/ngene-core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/media/dvb/ngene/ngene-core.c b/drivers/media/dvb/ngene/ngene-core.c
index 4caeb16..1999e35 100644
--- a/drivers/media/dvb/ngene/ngene-core.c
+++ b/drivers/media/dvb/ngene/ngene-core.c
@@ -1516,7 +1516,7 @@ static int init_channels(struct ngene *dev)
 
 void __devexit ngene_remove(struct pci_dev *pdev)
 {
-	struct ngene *dev = (struct ngene *)pci_get_drvdata(pdev);
+	struct ngene *dev = pci_get_drvdata(pdev);
 	int i;
 
 	tasklet_kill(&dev->event_tasklet);
-- 
1.7.3.1.g432b3.dirty


^ permalink raw reply related	[flat|nested] 23+ messages in thread

* [PATCH 04/11] drivers/misc/ibmasm/module.c: Remove unnecessary casts of pci_get_drvdata
  2010-11-15 20:13 ` Joe Perches
                   ` (3 preceding siblings ...)
  (?)
@ 2010-11-15 20:13 ` Joe Perches
  -1 siblings, 0 replies; 23+ messages in thread
From: Joe Perches @ 2010-11-15 20:13 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: linux-kernel

Signed-off-by: Joe Perches <joe@perches.com>
---
 drivers/misc/ibmasm/module.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/misc/ibmasm/module.c b/drivers/misc/ibmasm/module.c
index a234d96..9e5e407 100644
--- a/drivers/misc/ibmasm/module.c
+++ b/drivers/misc/ibmasm/module.c
@@ -165,7 +165,7 @@ error_resources:
 
 static void __devexit ibmasm_remove_one(struct pci_dev *pdev)
 {
-	struct service_processor *sp = (struct service_processor *)pci_get_drvdata(pdev);
+	struct service_processor *sp = pci_get_drvdata(pdev);
 
 	dbg("Unregistering UART\n");
 	ibmasm_unregister_uart(sp);
-- 
1.7.3.1.g432b3.dirty


^ permalink raw reply related	[flat|nested] 23+ messages in thread

* [PATCH 05/11] drivers/net/irda: Remove unnecessary casts of pci_get_drvdata
  2010-11-15 20:13 ` Joe Perches
                   ` (4 preceding siblings ...)
  (?)
@ 2010-11-15 20:13 ` Joe Perches
  2010-11-16 11:27   ` Samuel Ortiz
  -1 siblings, 1 reply; 23+ messages in thread
From: Joe Perches @ 2010-11-15 20:13 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: Samuel Ortiz, netdev, linux-kernel

Signed-off-by: Joe Perches <joe@perches.com>
---
 drivers/net/irda/donauboe.c |    6 +++---
 drivers/net/irda/vlsi_ir.c  |    2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/net/irda/donauboe.c b/drivers/net/irda/donauboe.c
index b626ccc..bee5ccc 100644
--- a/drivers/net/irda/donauboe.c
+++ b/drivers/net/irda/donauboe.c
@@ -1488,7 +1488,7 @@ static void
 toshoboe_close (struct pci_dev *pci_dev)
 {
   int i;
-  struct toshoboe_cb *self = (struct toshoboe_cb*)pci_get_drvdata(pci_dev);
+  struct toshoboe_cb *self = pci_get_drvdata(pci_dev);
 
   IRDA_DEBUG (4, "%s()\n", __func__);
 
@@ -1698,7 +1698,7 @@ freeself:
 static int
 toshoboe_gotosleep (struct pci_dev *pci_dev, pm_message_t crap)
 {
-  struct toshoboe_cb *self = (struct toshoboe_cb*)pci_get_drvdata(pci_dev);
+  struct toshoboe_cb *self = pci_get_drvdata(pci_dev);
   unsigned long flags;
   int i = 10;
 
@@ -1727,7 +1727,7 @@ toshoboe_gotosleep (struct pci_dev *pci_dev, pm_message_t crap)
 static int
 toshoboe_wakeup (struct pci_dev *pci_dev)
 {
-  struct toshoboe_cb *self = (struct toshoboe_cb*)pci_get_drvdata(pci_dev);
+  struct toshoboe_cb *self = pci_get_drvdata(pci_dev);
   unsigned long flags;
 
   IRDA_DEBUG (4, "%s()\n", __func__);
diff --git a/drivers/net/irda/vlsi_ir.c b/drivers/net/irda/vlsi_ir.c
index c3d0738..62f2d12 100644
--- a/drivers/net/irda/vlsi_ir.c
+++ b/drivers/net/irda/vlsi_ir.c
@@ -542,7 +542,7 @@ static int vlsi_process_rx(struct vlsi_ring *r, struct ring_descr *rd)
 	int		crclen, len = 0;
 	struct sk_buff	*skb;
 	int		ret = 0;
-	struct net_device *ndev = (struct net_device *)pci_get_drvdata(r->pdev);
+	struct net_device *ndev = pci_get_drvdata(r->pdev);
 	vlsi_irda_dev_t *idev = netdev_priv(ndev);
 
 	pci_dma_sync_single_for_cpu(r->pdev, rd_get_addr(rd), r->len, r->dir);
-- 
1.7.3.1.g432b3.dirty


^ permalink raw reply related	[flat|nested] 23+ messages in thread

* [PATCH 06/11] drivers/net/s2io.c: Remove unnecessary casts of pci_get_drvdata
  2010-11-15 20:13 ` Joe Perches
                   ` (5 preceding siblings ...)
  (?)
@ 2010-11-15 20:13 ` Joe Perches
  2010-11-17 20:28   ` David Miller
  -1 siblings, 1 reply; 23+ messages in thread
From: Joe Perches @ 2010-11-15 20:13 UTC (permalink / raw)
  To: Jiri Kosina
  Cc: Ramkrishna Vepa, Sivakumar Subramani, Sreenivasa Honnur,
	Jon Mason, netdev, linux-kernel

Signed-off-by: Joe Perches <joe@perches.com>
---
 drivers/net/s2io.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/drivers/net/s2io.c b/drivers/net/s2io.c
index ecc25aa..0f4219c 100644
--- a/drivers/net/s2io.c
+++ b/drivers/net/s2io.c
@@ -8321,8 +8321,7 @@ mem_alloc_failed:
 
 static void __devexit s2io_rem_nic(struct pci_dev *pdev)
 {
-	struct net_device *dev =
-		(struct net_device *)pci_get_drvdata(pdev);
+	struct net_device *dev = pci_get_drvdata(pdev);
 	struct s2io_nic *sp;
 
 	if (dev == NULL) {
-- 
1.7.3.1.g432b3.dirty


^ permalink raw reply related	[flat|nested] 23+ messages in thread

* [PATCH 07/11] drivers/net/vxge/vxge-main.c: Remove unnecessary casts of pci_get_drvdata
  2010-11-15 20:13 ` Joe Perches
                   ` (6 preceding siblings ...)
  (?)
@ 2010-11-15 20:13 ` Joe Perches
  2010-11-15 22:50   ` Jon Mason
  -1 siblings, 1 reply; 23+ messages in thread
From: Joe Perches @ 2010-11-15 20:13 UTC (permalink / raw)
  To: Jiri Kosina
  Cc: Ramkrishna Vepa, Sivakumar Subramani, Sreenivasa Honnur,
	Jon Mason, netdev, linux-kernel

Signed-off-by: Joe Perches <joe@perches.com>
---
 drivers/net/vxge/vxge-main.c |   28 ++++++++++++----------------
 1 files changed, 12 insertions(+), 16 deletions(-)

diff --git a/drivers/net/vxge/vxge-main.c b/drivers/net/vxge/vxge-main.c
index 3f2d6ed..22c7d79 100644
--- a/drivers/net/vxge/vxge-main.c
+++ b/drivers/net/vxge/vxge-main.c
@@ -688,7 +688,7 @@ static int vxge_learn_mac(struct vxgedev *vdev, u8 *mac_header)
 	struct vxge_vpath *vpath = NULL;
 	struct __vxge_hw_device *hldev;
 
-	hldev = (struct __vxge_hw_device *)pci_get_drvdata(vdev->pdev);
+	hldev = pci_get_drvdata(vdev->pdev);
 
 	mac_address = (u8 *)&mac_addr;
 	memcpy(mac_address, mac_header, ETH_ALEN);
@@ -1313,7 +1313,7 @@ static void vxge_vpath_intr_disable(struct vxgedev *vdev, int vp_id)
 	struct __vxge_hw_device *hldev;
 	int msix_id;
 
-	hldev = (struct __vxge_hw_device *)pci_get_drvdata(vdev->pdev);
+	hldev = pci_get_drvdata(vdev->pdev);
 
 	vxge_hw_vpath_wait_receive_idle(hldev, vpath->device_id);
 
@@ -1632,8 +1632,7 @@ static int vxge_poll_inta(struct napi_struct *napi, int budget)
 	int budget_org = budget;
 	struct vxge_ring *ring;
 
-	struct __vxge_hw_device *hldev = (struct __vxge_hw_device *)
-		pci_get_drvdata(vdev->pdev);
+	struct __vxge_hw_device *hldev = pci_get_drvdata(vdev->pdev);
 
 	for (i = 0; i < vdev->no_of_vpath; i++) {
 		ring = &vdev->vpaths[i].ring;
@@ -1673,7 +1672,7 @@ static void vxge_netpoll(struct net_device *dev)
 	struct vxgedev *vdev;
 
 	vdev = (struct vxgedev *)netdev_priv(dev);
-	hldev = (struct __vxge_hw_device  *)pci_get_drvdata(vdev->pdev);
+	hldev = pci_get_drvdata(vdev->pdev);
 
 	vxge_debug_entryexit(VXGE_TRACE, "%s:%d", __func__, __LINE__);
 
@@ -2107,7 +2106,7 @@ static irqreturn_t vxge_isr_napi(int irq, void *dev_id)
 	vxge_debug_intr(VXGE_TRACE, "%s:%d", __func__, __LINE__);
 
 	dev = vdev->ndev;
-	hldev = (struct __vxge_hw_device *)pci_get_drvdata(vdev->pdev);
+	hldev = pci_get_drvdata(vdev->pdev);
 
 	if (pci_channel_offline(vdev->pdev))
 		return IRQ_NONE;
@@ -2342,7 +2341,7 @@ static void vxge_rem_msix_isr(struct vxgedev *vdev)
 static void vxge_rem_isr(struct vxgedev *vdev)
 {
 	struct __vxge_hw_device *hldev;
-	hldev = (struct __vxge_hw_device  *)pci_get_drvdata(vdev->pdev);
+	hldev = pci_get_drvdata(vdev->pdev);
 
 #ifdef CONFIG_PCI_MSI
 	if (vdev->config.intr_type == MSI_X) {
@@ -2583,7 +2582,7 @@ vxge_open(struct net_device *dev)
 		"%s: %s:%d", dev->name, __func__, __LINE__);
 
 	vdev = (struct vxgedev *)netdev_priv(dev);
-	hldev = (struct __vxge_hw_device *)pci_get_drvdata(vdev->pdev);
+	hldev = pci_get_drvdata(vdev->pdev);
 	function_mode = vdev->config.device_hw_info.function_mode;
 
 	/* make sure you have link off by default every time Nic is
@@ -2811,7 +2810,7 @@ static int do_vxge_close(struct net_device *dev, int do_io)
 		dev->name, __func__, __LINE__);
 
 	vdev = (struct vxgedev *)netdev_priv(dev);
-	hldev = (struct __vxge_hw_device *)pci_get_drvdata(vdev->pdev);
+	hldev = pci_get_drvdata(vdev->pdev);
 
 	if (unlikely(!is_vxge_card_up(vdev)))
 		return 0;
@@ -3985,8 +3984,7 @@ static int vxge_pm_resume(struct pci_dev *pdev)
 static pci_ers_result_t vxge_io_error_detected(struct pci_dev *pdev,
 						pci_channel_state_t state)
 {
-	struct __vxge_hw_device *hldev =
-		(struct __vxge_hw_device  *)pci_get_drvdata(pdev);
+	struct __vxge_hw_device *hldev = pci_get_drvdata(pdev);
 	struct net_device *netdev = hldev->ndev;
 
 	netif_device_detach(netdev);
@@ -4015,8 +4013,7 @@ static pci_ers_result_t vxge_io_error_detected(struct pci_dev *pdev,
  */
 static pci_ers_result_t vxge_io_slot_reset(struct pci_dev *pdev)
 {
-	struct __vxge_hw_device *hldev =
-		(struct __vxge_hw_device  *)pci_get_drvdata(pdev);
+	struct __vxge_hw_device *hldev = pci_get_drvdata(pdev);
 	struct net_device *netdev = hldev->ndev;
 
 	struct vxgedev *vdev = netdev_priv(netdev);
@@ -4041,8 +4038,7 @@ static pci_ers_result_t vxge_io_slot_reset(struct pci_dev *pdev)
  */
 static void vxge_io_resume(struct pci_dev *pdev)
 {
-	struct __vxge_hw_device *hldev =
-		(struct __vxge_hw_device  *)pci_get_drvdata(pdev);
+	struct __vxge_hw_device *hldev = pci_get_drvdata(pdev);
 	struct net_device *netdev = hldev->ndev;
 
 	if (netif_running(netdev)) {
@@ -4689,7 +4685,7 @@ static void __devexit vxge_remove(struct pci_dev *pdev)
 	struct net_device *dev;
 	int i = 0;
 
-	hldev = (struct __vxge_hw_device  *)pci_get_drvdata(pdev);
+	hldev = pci_get_drvdata(pdev);
 
 	if (hldev == NULL)
 		return;
-- 
1.7.3.1.g432b3.dirty


^ permalink raw reply related	[flat|nested] 23+ messages in thread

* [PATCH 08/11] drivers/scsi/be2iscsi/be_main.c: Remove unnecessary casts of pci_get_drvdata
  2010-11-15 20:13 ` Joe Perches
                   ` (7 preceding siblings ...)
  (?)
@ 2010-11-15 20:13 ` Joe Perches
  -1 siblings, 0 replies; 23+ messages in thread
From: Joe Perches @ 2010-11-15 20:13 UTC (permalink / raw)
  To: Jiri Kosina
  Cc: Jayamohan Kallickal, James E.J. Bottomley, linux-scsi, linux-kernel

Signed-off-by: Joe Perches <joe@perches.com>
---
 drivers/scsi/be2iscsi/be_main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/scsi/be2iscsi/be_main.c b/drivers/scsi/be2iscsi/be_main.c
index 75a85aa..b00b904 100644
--- a/drivers/scsi/be2iscsi/be_main.c
+++ b/drivers/scsi/be2iscsi/be_main.c
@@ -4103,7 +4103,7 @@ static void beiscsi_remove(struct pci_dev *pcidev)
 	u8 *real_offset = 0;
 	u32 value = 0;
 
-	phba = (struct beiscsi_hba *)pci_get_drvdata(pcidev);
+	phba = pci_get_drvdata(pcidev);
 	if (!phba) {
 		dev_err(&pcidev->dev, "beiscsi_remove called with no phba\n");
 		return;
-- 
1.7.3.1.g432b3.dirty


^ permalink raw reply related	[flat|nested] 23+ messages in thread

* [PATCH 09/11] drivers/staging: Remove unnecessary casts of pci_get_drvdata
  2010-11-15 20:13 ` Joe Perches
                   ` (8 preceding siblings ...)
  (?)
@ 2010-11-15 20:14 ` Joe Perches
  -1 siblings, 0 replies; 23+ messages in thread
From: Joe Perches @ 2010-11-15 20:14 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: Greg Kroah-Hartman, devel, linux-kernel

Signed-off-by: Joe Perches <joe@perches.com>
---
 drivers/staging/crystalhd/crystalhd_lnx.c |    6 +++---
 drivers/staging/et131x/et131x_initpci.c   |    2 +-
 drivers/staging/wlags49_h2/wl_pci.c       |    2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/staging/crystalhd/crystalhd_lnx.c b/drivers/staging/crystalhd/crystalhd_lnx.c
index 28c6b8c..719e70b 100644
--- a/drivers/staging/crystalhd/crystalhd_lnx.c
+++ b/drivers/staging/crystalhd/crystalhd_lnx.c
@@ -516,7 +516,7 @@ static void __devexit chd_dec_pci_remove(struct pci_dev *pdev)
 
 	BCMLOG_ENTER;
 
-	pinfo = (struct crystalhd_adp *) pci_get_drvdata(pdev);
+	pinfo = pci_get_drvdata(pdev);
 	if (!pinfo) {
 		BCMLOG_ERR("could not get adp\n");
 		return;
@@ -626,7 +626,7 @@ int chd_dec_pci_suspend(struct pci_dev *pdev, pm_message_t state)
 	struct crystalhd_ioctl_data *temp;
 	enum BC_STATUS sts = BC_STS_SUCCESS;
 
-	adp = (struct crystalhd_adp *)pci_get_drvdata(pdev);
+	adp = pci_get_drvdata(pdev);
 	if (!adp) {
 		BCMLOG_ERR("could not get adp\n");
 		return -ENODEV;
@@ -660,7 +660,7 @@ int chd_dec_pci_resume(struct pci_dev *pdev)
 	enum BC_STATUS sts = BC_STS_SUCCESS;
 	int rc;
 
-	adp = (struct crystalhd_adp *)pci_get_drvdata(pdev);
+	adp = pci_get_drvdata(pdev);
 	if (!adp) {
 		BCMLOG_ERR("could not get adp\n");
 		return -ENODEV;
diff --git a/drivers/staging/et131x/et131x_initpci.c b/drivers/staging/et131x/et131x_initpci.c
index 10bcb45..f62ba7a 100644
--- a/drivers/staging/et131x/et131x_initpci.c
+++ b/drivers/staging/et131x/et131x_initpci.c
@@ -783,7 +783,7 @@ static void __devexit et131x_pci_remove(struct pci_dev *pdev)
 	/* Retrieve the net_device pointer from the pci_dev struct, as well
 	 * as the private adapter struct
 	 */
-	netdev = (struct net_device *) pci_get_drvdata(pdev);
+	netdev = pci_get_drvdata(pdev);
 	adapter = netdev_priv(netdev);
 
 	/* Perform device cleanup */
diff --git a/drivers/staging/wlags49_h2/wl_pci.c b/drivers/staging/wlags49_h2/wl_pci.c
index 020b17a..28ae9dd 100644
--- a/drivers/staging/wlags49_h2/wl_pci.c
+++ b/drivers/staging/wlags49_h2/wl_pci.c
@@ -458,7 +458,7 @@ void __devexit wl_pci_remove(struct pci_dev *pdev)
         return;
     }
 
-    dev = (struct net_device *)pci_get_drvdata( pdev );
+    dev = pci_get_drvdata( pdev );
     if( dev == NULL ) {
         DBG_ERROR( DbgInfo, "Could not retrieve net_device structure\n" );
         return;
-- 
1.7.3.1.g432b3.dirty


^ permalink raw reply related	[flat|nested] 23+ messages in thread

* [PATCH 10/11] drivers/usb/host/uhci-hcd.c: Remove unnecessary casts of pci_get_drvdata
  2010-11-15 20:13 ` Joe Perches
                   ` (9 preceding siblings ...)
  (?)
@ 2010-11-15 20:14 ` Joe Perches
  2010-11-15 20:54   ` Alan Stern
  -1 siblings, 1 reply; 23+ messages in thread
From: Joe Perches @ 2010-11-15 20:14 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: Alan Stern, Greg Kroah-Hartman, linux-usb, linux-kernel

Signed-off-by: Joe Perches <joe@perches.com>
---
 drivers/usb/host/uhci-hcd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/usb/host/uhci-hcd.c b/drivers/usb/host/uhci-hcd.c
index f52d04d..cee8678 100644
--- a/drivers/usb/host/uhci-hcd.c
+++ b/drivers/usb/host/uhci-hcd.c
@@ -569,7 +569,7 @@ static int uhci_init(struct usb_hcd *hcd)
  */
 static void uhci_shutdown(struct pci_dev *pdev)
 {
-	struct usb_hcd *hcd = (struct usb_hcd *) pci_get_drvdata(pdev);
+	struct usb_hcd *hcd = pci_get_drvdata(pdev);
 
 	uhci_hc_died(hcd_to_uhci(hcd));
 }
-- 
1.7.3.1.g432b3.dirty


^ permalink raw reply related	[flat|nested] 23+ messages in thread

* [PATCH 11/11] sound/pci/asihpi/hpioctl.c: Remove unnecessary casts of pci_get_drvdata
  2010-11-15 20:13 ` Joe Perches
                   ` (10 preceding siblings ...)
  (?)
@ 2010-11-15 20:14 ` Joe Perches
  2010-11-22  6:44     ` Takashi Iwai
  -1 siblings, 1 reply; 23+ messages in thread
From: Joe Perches @ 2010-11-15 20:14 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: Jaroslav Kysela, Takashi Iwai, alsa-devel, linux-kernel

Signed-off-by: Joe Perches <joe@perches.com>
---
 sound/pci/asihpi/hpioctl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sound/pci/asihpi/hpioctl.c b/sound/pci/asihpi/hpioctl.c
index 62895a7..22dbd91 100644
--- a/sound/pci/asihpi/hpioctl.c
+++ b/sound/pci/asihpi/hpioctl.c
@@ -435,7 +435,7 @@ void __devexit asihpi_adapter_remove(struct pci_dev *pci_dev)
 	struct hpi_message hm;
 	struct hpi_response hr;
 	struct hpi_adapter *pa;
-	pa = (struct hpi_adapter *)pci_get_drvdata(pci_dev);
+	pa = pci_get_drvdata(pci_dev);
 
 	hpi_init_message_response(&hm, &hr, HPI_OBJ_SUBSYSTEM,
 		HPI_SUBSYS_DELETE_ADAPTER);
-- 
1.7.3.1.g432b3.dirty


^ permalink raw reply related	[flat|nested] 23+ messages in thread

* Re: [PATCH 10/11] drivers/usb/host/uhci-hcd.c: Remove unnecessary casts of pci_get_drvdata
  2010-11-15 20:14 ` [PATCH 10/11] drivers/usb/host/uhci-hcd.c: " Joe Perches
@ 2010-11-15 20:54   ` Alan Stern
  0 siblings, 0 replies; 23+ messages in thread
From: Alan Stern @ 2010-11-15 20:54 UTC (permalink / raw)
  To: Joe Perches; +Cc: Jiri Kosina, Greg Kroah-Hartman, linux-usb, linux-kernel

On Mon, 15 Nov 2010, Joe Perches wrote:

> Signed-off-by: Joe Perches <joe@perches.com>
> ---
>  drivers/usb/host/uhci-hcd.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/usb/host/uhci-hcd.c b/drivers/usb/host/uhci-hcd.c
> index f52d04d..cee8678 100644
> --- a/drivers/usb/host/uhci-hcd.c
> +++ b/drivers/usb/host/uhci-hcd.c
> @@ -569,7 +569,7 @@ static int uhci_init(struct usb_hcd *hcd)
>   */
>  static void uhci_shutdown(struct pci_dev *pdev)
>  {
> -	struct usb_hcd *hcd = (struct usb_hcd *) pci_get_drvdata(pdev);
> +	struct usb_hcd *hcd = pci_get_drvdata(pdev);
>  
>  	uhci_hc_died(hcd_to_uhci(hcd));
>  }

Acked-by: Alan Stern <stern@rowland.harvard.edu>



^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH 01/11] drivers/i2c/busses/i2c-nforce2.c: Remove unnecessary casts of pci_get_drvdata
@ 2010-11-15 21:06     ` Jean Delvare
  0 siblings, 0 replies; 23+ messages in thread
From: Jean Delvare @ 2010-11-15 21:06 UTC (permalink / raw)
  To: Joe Perches
  Cc: Jiri Kosina, Ben Dooks (embedded platforms), linux-i2c, linux-kernel

On Mon, 15 Nov 2010 12:13:52 -0800, Joe Perches wrote:
> Signed-off-by: Joe Perches <joe@perches.com>
> ---
>  drivers/i2c/busses/i2c-nforce2.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/i2c/busses/i2c-nforce2.c b/drivers/i2c/busses/i2c-nforce2.c
> index a605a50..ff1e127 100644
> --- a/drivers/i2c/busses/i2c-nforce2.c
> +++ b/drivers/i2c/busses/i2c-nforce2.c
> @@ -432,7 +432,7 @@ static int __devinit nforce2_probe(struct pci_dev *dev, const struct pci_device_
>  
>  static void __devexit nforce2_remove(struct pci_dev *dev)
>  {
> -	struct nforce2_smbus *smbuses = (void*) pci_get_drvdata(dev);
> +	struct nforce2_smbus *smbuses = pci_get_drvdata(dev);
>  
>  	nforce2_set_reference(NULL);
>  	if (smbuses[0].base) {

Applied, thanks.

-- 
Jean Delvare

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH 01/11] drivers/i2c/busses/i2c-nforce2.c: Remove unnecessary casts of pci_get_drvdata
@ 2010-11-15 21:06     ` Jean Delvare
  0 siblings, 0 replies; 23+ messages in thread
From: Jean Delvare @ 2010-11-15 21:06 UTC (permalink / raw)
  To: Joe Perches
  Cc: Jiri Kosina, Ben Dooks (embedded platforms),
	linux-i2c-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA

On Mon, 15 Nov 2010 12:13:52 -0800, Joe Perches wrote:
> Signed-off-by: Joe Perches <joe-6d6DIl74uiNBDgjK7y7TUQ@public.gmane.org>
> ---
>  drivers/i2c/busses/i2c-nforce2.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/i2c/busses/i2c-nforce2.c b/drivers/i2c/busses/i2c-nforce2.c
> index a605a50..ff1e127 100644
> --- a/drivers/i2c/busses/i2c-nforce2.c
> +++ b/drivers/i2c/busses/i2c-nforce2.c
> @@ -432,7 +432,7 @@ static int __devinit nforce2_probe(struct pci_dev *dev, const struct pci_device_
>  
>  static void __devexit nforce2_remove(struct pci_dev *dev)
>  {
> -	struct nforce2_smbus *smbuses = (void*) pci_get_drvdata(dev);
> +	struct nforce2_smbus *smbuses = pci_get_drvdata(dev);
>  
>  	nforce2_set_reference(NULL);
>  	if (smbuses[0].base) {

Applied, thanks.

-- 
Jean Delvare

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH 07/11] drivers/net/vxge/vxge-main.c: Remove unnecessary casts of pci_get_drvdata
  2010-11-15 20:13 ` [PATCH 07/11] drivers/net/vxge/vxge-main.c: " Joe Perches
@ 2010-11-15 22:50   ` Jon Mason
  2010-11-17 20:28     ` David Miller
  0 siblings, 1 reply; 23+ messages in thread
From: Jon Mason @ 2010-11-15 22:50 UTC (permalink / raw)
  To: Joe Perches
  Cc: Jiri Kosina, Ramkrishna Vepa, Sivakumar Subramani,
	Sreenivasa Honnur, netdev, linux-kernel

On Mon, Nov 15, 2010 at 12:13:58PM -0800, Joe Perches wrote:
> Signed-off-by: Joe Perches <joe@perches.com>

Looks good to me.

Acked-by: Jon Mason <jon.mason@exar.com>
> ---
>  drivers/net/vxge/vxge-main.c |   28 ++++++++++++----------------
>  1 files changed, 12 insertions(+), 16 deletions(-)
> 
> diff --git a/drivers/net/vxge/vxge-main.c b/drivers/net/vxge/vxge-main.c
> index 3f2d6ed..22c7d79 100644
> --- a/drivers/net/vxge/vxge-main.c
> +++ b/drivers/net/vxge/vxge-main.c
> @@ -688,7 +688,7 @@ static int vxge_learn_mac(struct vxgedev *vdev, u8 *mac_header)
>  	struct vxge_vpath *vpath = NULL;
>  	struct __vxge_hw_device *hldev;
>  
> -	hldev = (struct __vxge_hw_device *)pci_get_drvdata(vdev->pdev);
> +	hldev = pci_get_drvdata(vdev->pdev);
>  
>  	mac_address = (u8 *)&mac_addr;
>  	memcpy(mac_address, mac_header, ETH_ALEN);
> @@ -1313,7 +1313,7 @@ static void vxge_vpath_intr_disable(struct vxgedev *vdev, int vp_id)
>  	struct __vxge_hw_device *hldev;
>  	int msix_id;
>  
> -	hldev = (struct __vxge_hw_device *)pci_get_drvdata(vdev->pdev);
> +	hldev = pci_get_drvdata(vdev->pdev);
>  
>  	vxge_hw_vpath_wait_receive_idle(hldev, vpath->device_id);
>  
> @@ -1632,8 +1632,7 @@ static int vxge_poll_inta(struct napi_struct *napi, int budget)
>  	int budget_org = budget;
>  	struct vxge_ring *ring;
>  
> -	struct __vxge_hw_device *hldev = (struct __vxge_hw_device *)
> -		pci_get_drvdata(vdev->pdev);
> +	struct __vxge_hw_device *hldev = pci_get_drvdata(vdev->pdev);
>  
>  	for (i = 0; i < vdev->no_of_vpath; i++) {
>  		ring = &vdev->vpaths[i].ring;
> @@ -1673,7 +1672,7 @@ static void vxge_netpoll(struct net_device *dev)
>  	struct vxgedev *vdev;
>  
>  	vdev = (struct vxgedev *)netdev_priv(dev);
> -	hldev = (struct __vxge_hw_device  *)pci_get_drvdata(vdev->pdev);
> +	hldev = pci_get_drvdata(vdev->pdev);
>  
>  	vxge_debug_entryexit(VXGE_TRACE, "%s:%d", __func__, __LINE__);
>  
> @@ -2107,7 +2106,7 @@ static irqreturn_t vxge_isr_napi(int irq, void *dev_id)
>  	vxge_debug_intr(VXGE_TRACE, "%s:%d", __func__, __LINE__);
>  
>  	dev = vdev->ndev;
> -	hldev = (struct __vxge_hw_device *)pci_get_drvdata(vdev->pdev);
> +	hldev = pci_get_drvdata(vdev->pdev);
>  
>  	if (pci_channel_offline(vdev->pdev))
>  		return IRQ_NONE;
> @@ -2342,7 +2341,7 @@ static void vxge_rem_msix_isr(struct vxgedev *vdev)
>  static void vxge_rem_isr(struct vxgedev *vdev)
>  {
>  	struct __vxge_hw_device *hldev;
> -	hldev = (struct __vxge_hw_device  *)pci_get_drvdata(vdev->pdev);
> +	hldev = pci_get_drvdata(vdev->pdev);
>  
>  #ifdef CONFIG_PCI_MSI
>  	if (vdev->config.intr_type == MSI_X) {
> @@ -2583,7 +2582,7 @@ vxge_open(struct net_device *dev)
>  		"%s: %s:%d", dev->name, __func__, __LINE__);
>  
>  	vdev = (struct vxgedev *)netdev_priv(dev);
> -	hldev = (struct __vxge_hw_device *)pci_get_drvdata(vdev->pdev);
> +	hldev = pci_get_drvdata(vdev->pdev);
>  	function_mode = vdev->config.device_hw_info.function_mode;
>  
>  	/* make sure you have link off by default every time Nic is
> @@ -2811,7 +2810,7 @@ static int do_vxge_close(struct net_device *dev, int do_io)
>  		dev->name, __func__, __LINE__);
>  
>  	vdev = (struct vxgedev *)netdev_priv(dev);
> -	hldev = (struct __vxge_hw_device *)pci_get_drvdata(vdev->pdev);
> +	hldev = pci_get_drvdata(vdev->pdev);
>  
>  	if (unlikely(!is_vxge_card_up(vdev)))
>  		return 0;
> @@ -3985,8 +3984,7 @@ static int vxge_pm_resume(struct pci_dev *pdev)
>  static pci_ers_result_t vxge_io_error_detected(struct pci_dev *pdev,
>  						pci_channel_state_t state)
>  {
> -	struct __vxge_hw_device *hldev =
> -		(struct __vxge_hw_device  *)pci_get_drvdata(pdev);
> +	struct __vxge_hw_device *hldev = pci_get_drvdata(pdev);
>  	struct net_device *netdev = hldev->ndev;
>  
>  	netif_device_detach(netdev);
> @@ -4015,8 +4013,7 @@ static pci_ers_result_t vxge_io_error_detected(struct pci_dev *pdev,
>   */
>  static pci_ers_result_t vxge_io_slot_reset(struct pci_dev *pdev)
>  {
> -	struct __vxge_hw_device *hldev =
> -		(struct __vxge_hw_device  *)pci_get_drvdata(pdev);
> +	struct __vxge_hw_device *hldev = pci_get_drvdata(pdev);
>  	struct net_device *netdev = hldev->ndev;
>  
>  	struct vxgedev *vdev = netdev_priv(netdev);
> @@ -4041,8 +4038,7 @@ static pci_ers_result_t vxge_io_slot_reset(struct pci_dev *pdev)
>   */
>  static void vxge_io_resume(struct pci_dev *pdev)
>  {
> -	struct __vxge_hw_device *hldev =
> -		(struct __vxge_hw_device  *)pci_get_drvdata(pdev);
> +	struct __vxge_hw_device *hldev = pci_get_drvdata(pdev);
>  	struct net_device *netdev = hldev->ndev;
>  
>  	if (netif_running(netdev)) {
> @@ -4689,7 +4685,7 @@ static void __devexit vxge_remove(struct pci_dev *pdev)
>  	struct net_device *dev;
>  	int i = 0;
>  
> -	hldev = (struct __vxge_hw_device  *)pci_get_drvdata(pdev);
> +	hldev = pci_get_drvdata(pdev);
>  
>  	if (hldev == NULL)
>  		return;
> -- 
> 1.7.3.1.g432b3.dirty
> 

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH 05/11] drivers/net/irda: Remove unnecessary casts of pci_get_drvdata
  2010-11-15 20:13 ` [PATCH 05/11] drivers/net/irda: " Joe Perches
@ 2010-11-16 11:27   ` Samuel Ortiz
  0 siblings, 0 replies; 23+ messages in thread
From: Samuel Ortiz @ 2010-11-16 11:27 UTC (permalink / raw)
  To: Joe Perches; +Cc: Jiri Kosina, netdev, linux-kernel

Hi Joe,

On Mon, 2010-11-15 at 12:13 -0800, Joe Perches wrote:
> Signed-off-by: Joe Perches <joe@perches.com>
Thanks, I'll apply it to my irda tree.

Cheers,
Samuel.


> ---
>  drivers/net/irda/donauboe.c |    6 +++---
>  drivers/net/irda/vlsi_ir.c  |    2 +-
>  2 files changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/net/irda/donauboe.c b/drivers/net/irda/donauboe.c
> index b626ccc..bee5ccc 100644
> --- a/drivers/net/irda/donauboe.c
> +++ b/drivers/net/irda/donauboe.c
> @@ -1488,7 +1488,7 @@ static void
>  toshoboe_close (struct pci_dev *pci_dev)
>  {
>    int i;
> -  struct toshoboe_cb *self = (struct toshoboe_cb*)pci_get_drvdata(pci_dev);
> +  struct toshoboe_cb *self = pci_get_drvdata(pci_dev);
>  
>    IRDA_DEBUG (4, "%s()\n", __func__);
>  
> @@ -1698,7 +1698,7 @@ freeself:
>  static int
>  toshoboe_gotosleep (struct pci_dev *pci_dev, pm_message_t crap)
>  {
> -  struct toshoboe_cb *self = (struct toshoboe_cb*)pci_get_drvdata(pci_dev);
> +  struct toshoboe_cb *self = pci_get_drvdata(pci_dev);
>    unsigned long flags;
>    int i = 10;
>  
> @@ -1727,7 +1727,7 @@ toshoboe_gotosleep (struct pci_dev *pci_dev, pm_message_t crap)
>  static int
>  toshoboe_wakeup (struct pci_dev *pci_dev)
>  {
> -  struct toshoboe_cb *self = (struct toshoboe_cb*)pci_get_drvdata(pci_dev);
> +  struct toshoboe_cb *self = pci_get_drvdata(pci_dev);
>    unsigned long flags;
>  
>    IRDA_DEBUG (4, "%s()\n", __func__);
> diff --git a/drivers/net/irda/vlsi_ir.c b/drivers/net/irda/vlsi_ir.c
> index c3d0738..62f2d12 100644
> --- a/drivers/net/irda/vlsi_ir.c
> +++ b/drivers/net/irda/vlsi_ir.c
> @@ -542,7 +542,7 @@ static int vlsi_process_rx(struct vlsi_ring *r, struct ring_descr *rd)
>  	int		crclen, len = 0;
>  	struct sk_buff	*skb;
>  	int		ret = 0;
> -	struct net_device *ndev = (struct net_device *)pci_get_drvdata(r->pdev);
> +	struct net_device *ndev = pci_get_drvdata(r->pdev);
>  	vlsi_irda_dev_t *idev = netdev_priv(ndev);
>  
>  	pci_dma_sync_single_for_cpu(r->pdev, rd_get_addr(rd), r->len, r->dir);



^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH 06/11] drivers/net/s2io.c: Remove unnecessary casts of pci_get_drvdata
  2010-11-15 20:13 ` [PATCH 06/11] drivers/net/s2io.c: " Joe Perches
@ 2010-11-17 20:28   ` David Miller
  0 siblings, 0 replies; 23+ messages in thread
From: David Miller @ 2010-11-17 20:28 UTC (permalink / raw)
  To: joe
  Cc: trivial, ramkrishna.vepa, sivakumar.subramani, sreenivasa.honnur,
	jon.mason, netdev, linux-kernel

From: Joe Perches <joe@perches.com>
Date: Mon, 15 Nov 2010 12:13:57 -0800

> Signed-off-by: Joe Perches <joe@perches.com>

Applied.

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH 07/11] drivers/net/vxge/vxge-main.c: Remove unnecessary casts of pci_get_drvdata
  2010-11-15 22:50   ` Jon Mason
@ 2010-11-17 20:28     ` David Miller
  0 siblings, 0 replies; 23+ messages in thread
From: David Miller @ 2010-11-17 20:28 UTC (permalink / raw)
  To: jon.mason
  Cc: joe, trivial, Ramkrishna.Vepa, Sivakumar.Subramani,
	Sreenivasa.Honnur, netdev, linux-kernel

From: Jon Mason <jon.mason@exar.com>
Date: Mon, 15 Nov 2010 16:50:56 -0600

> On Mon, Nov 15, 2010 at 12:13:58PM -0800, Joe Perches wrote:
>> Signed-off-by: Joe Perches <joe@perches.com>
> 
> Looks good to me.
> 
> Acked-by: Jon Mason <jon.mason@exar.com>

Applied.

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH 11/11] sound/pci/asihpi/hpioctl.c: Remove unnecessary casts of pci_get_drvdata
  2010-11-15 20:14 ` [PATCH 11/11] sound/pci/asihpi/hpioctl.c: " Joe Perches
@ 2010-11-22  6:44     ` Takashi Iwai
  0 siblings, 0 replies; 23+ messages in thread
From: Takashi Iwai @ 2010-11-22  6:44 UTC (permalink / raw)
  To: Joe Perches; +Cc: Jiri Kosina, Jaroslav Kysela, alsa-devel, linux-kernel

At Mon, 15 Nov 2010 12:14:02 -0800,
Joe Perches wrote:
> 
> Signed-off-by: Joe Perches <joe@perches.com>

Applied this one, too.  Thanks.


Takashi


> ---
>  sound/pci/asihpi/hpioctl.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/sound/pci/asihpi/hpioctl.c b/sound/pci/asihpi/hpioctl.c
> index 62895a7..22dbd91 100644
> --- a/sound/pci/asihpi/hpioctl.c
> +++ b/sound/pci/asihpi/hpioctl.c
> @@ -435,7 +435,7 @@ void __devexit asihpi_adapter_remove(struct pci_dev *pci_dev)
>  	struct hpi_message hm;
>  	struct hpi_response hr;
>  	struct hpi_adapter *pa;
> -	pa = (struct hpi_adapter *)pci_get_drvdata(pci_dev);
> +	pa = pci_get_drvdata(pci_dev);
>  
>  	hpi_init_message_response(&hm, &hr, HPI_OBJ_SUBSYSTEM,
>  		HPI_SUBSYS_DELETE_ADAPTER);
> -- 
> 1.7.3.1.g432b3.dirty
> 

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH 11/11] sound/pci/asihpi/hpioctl.c: Remove unnecessary casts of pci_get_drvdata
@ 2010-11-22  6:44     ` Takashi Iwai
  0 siblings, 0 replies; 23+ messages in thread
From: Takashi Iwai @ 2010-11-22  6:44 UTC (permalink / raw)
  To: Joe Perches; +Cc: alsa-devel, Jiri Kosina, linux-kernel

At Mon, 15 Nov 2010 12:14:02 -0800,
Joe Perches wrote:
> 
> Signed-off-by: Joe Perches <joe@perches.com>

Applied this one, too.  Thanks.


Takashi


> ---
>  sound/pci/asihpi/hpioctl.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/sound/pci/asihpi/hpioctl.c b/sound/pci/asihpi/hpioctl.c
> index 62895a7..22dbd91 100644
> --- a/sound/pci/asihpi/hpioctl.c
> +++ b/sound/pci/asihpi/hpioctl.c
> @@ -435,7 +435,7 @@ void __devexit asihpi_adapter_remove(struct pci_dev *pci_dev)
>  	struct hpi_message hm;
>  	struct hpi_response hr;
>  	struct hpi_adapter *pa;
> -	pa = (struct hpi_adapter *)pci_get_drvdata(pci_dev);
> +	pa = pci_get_drvdata(pci_dev);
>  
>  	hpi_init_message_response(&hm, &hr, HPI_OBJ_SUBSYSTEM,
>  		HPI_SUBSYS_DELETE_ADAPTER);
> -- 
> 1.7.3.1.g432b3.dirty
> 

^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: [PATCH 02/11] drivers/ide/pmac.c: Remove unnecessary casts of pci_get_drvdata
  2010-11-15 20:13 ` [PATCH 02/11] drivers/ide/pmac.c: " Joe Perches
@ 2010-11-22 19:38   ` David Miller
  0 siblings, 0 replies; 23+ messages in thread
From: David Miller @ 2010-11-22 19:38 UTC (permalink / raw)
  To: joe; +Cc: trivial, linux-ide, linux-kernel

From: Joe Perches <joe@perches.com>
Date: Mon, 15 Nov 2010 12:13:53 -0800

> Signed-off-by: Joe Perches <joe@perches.com>

Applied, thank you.

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2010-11-22 19:37 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-15 20:13 [PATCH 00/11] Remove unnecessary casts of pci_get_drvdata Joe Perches
2010-11-15 20:13 ` Joe Perches
2010-11-15 20:13 ` [PATCH 01/11] drivers/i2c/busses/i2c-nforce2.c: " Joe Perches
2010-11-15 21:06   ` Jean Delvare
2010-11-15 21:06     ` Jean Delvare
2010-11-15 20:13 ` [PATCH 02/11] drivers/ide/pmac.c: " Joe Perches
2010-11-22 19:38   ` David Miller
2010-11-15 20:13 ` [PATCH 03/11] drivers/media/dvb/ngene/ngene-core.c: " Joe Perches
2010-11-15 20:13 ` [PATCH 04/11] drivers/misc/ibmasm/module.c: " Joe Perches
2010-11-15 20:13 ` [PATCH 05/11] drivers/net/irda: " Joe Perches
2010-11-16 11:27   ` Samuel Ortiz
2010-11-15 20:13 ` [PATCH 06/11] drivers/net/s2io.c: " Joe Perches
2010-11-17 20:28   ` David Miller
2010-11-15 20:13 ` [PATCH 07/11] drivers/net/vxge/vxge-main.c: " Joe Perches
2010-11-15 22:50   ` Jon Mason
2010-11-17 20:28     ` David Miller
2010-11-15 20:13 ` [PATCH 08/11] drivers/scsi/be2iscsi/be_main.c: " Joe Perches
2010-11-15 20:14 ` [PATCH 09/11] drivers/staging: " Joe Perches
2010-11-15 20:14 ` [PATCH 10/11] drivers/usb/host/uhci-hcd.c: " Joe Perches
2010-11-15 20:54   ` Alan Stern
2010-11-15 20:14 ` [PATCH 11/11] sound/pci/asihpi/hpioctl.c: " Joe Perches
2010-11-22  6:44   ` Takashi Iwai
2010-11-22  6:44     ` Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.