Skip to content

Commit 827b464

Browse files
committed
PM / PCMCIA: Drop second argument of pcmcia_socket_dev_suspend()
pcmcia_socket_dev_suspend() doesn't use its second argument, so it may be dropped safely. This change is necessary for the subsequent yenta suspend/resume fix. Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Cc: stable@kernel.org
1 parent 17d857b commit 827b464

18 files changed

Lines changed: 18 additions & 18 deletions

‎drivers/pcmcia/at91_cf.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ static int at91_cf_suspend(struct platform_device *pdev, pm_message_t mesg)
363363
struct at91_cf_socket *cf = platform_get_drvdata(pdev);
364364
struct at91_cf_data *board = cf->board;
365365

366-
pcmcia_socket_dev_suspend(&pdev->dev, mesg);
366+
pcmcia_socket_dev_suspend(&pdev->dev);
367367
if (device_may_wakeup(&pdev->dev)) {
368368
enable_irq_wake(board->det_pin);
369369
if (board->irq_pin)

‎drivers/pcmcia/au1000_generic.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ static int au1x00_drv_pcmcia_probe(struct platform_device *dev)
515515
static int au1x00_drv_pcmcia_suspend(struct platform_device *dev,
516516
pm_message_t state)
517517
{
518-
return pcmcia_socket_dev_suspend(&dev->dev, state);
518+
return pcmcia_socket_dev_suspend(&dev->dev);
519519
}
520520

521521
static int au1x00_drv_pcmcia_resume(struct platform_device *dev)

‎drivers/pcmcia/bfin_cf_pcmcia.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ static int __devexit bfin_cf_remove(struct platform_device *pdev)
302302

303303
static int bfin_cf_suspend(struct platform_device *pdev, pm_message_t mesg)
304304
{
305-
return pcmcia_socket_dev_suspend(&pdev->dev, mesg);
305+
return pcmcia_socket_dev_suspend(&pdev->dev);
306306
}
307307

308308
static int bfin_cf_resume(struct platform_device *pdev)

‎drivers/pcmcia/cs.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ EXPORT_SYMBOL(pcmcia_socket_list_rwsem);
101101
static int socket_resume(struct pcmcia_socket *skt);
102102
static int socket_suspend(struct pcmcia_socket *skt);
103103

104-
int pcmcia_socket_dev_suspend(struct device *dev, pm_message_t state)
104+
int pcmcia_socket_dev_suspend(struct device *dev)
105105
{
106106
struct pcmcia_socket *socket;
107107

‎drivers/pcmcia/i82092.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ MODULE_DEVICE_TABLE(pci, i82092aa_pci_ids);
4242
#ifdef CONFIG_PM
4343
static int i82092aa_socket_suspend (struct pci_dev *dev, pm_message_t state)
4444
{
45-
return pcmcia_socket_dev_suspend(&dev->dev, state);
45+
return pcmcia_socket_dev_suspend(&dev->dev);
4646
}
4747

4848
static int i82092aa_socket_resume (struct pci_dev *dev)

‎drivers/pcmcia/i82365.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1241,7 +1241,7 @@ static int pcic_init(struct pcmcia_socket *s)
12411241
static int i82365_drv_pcmcia_suspend(struct platform_device *dev,
12421242
pm_message_t state)
12431243
{
1244-
return pcmcia_socket_dev_suspend(&dev->dev, state);
1244+
return pcmcia_socket_dev_suspend(&dev->dev);
12451245
}
12461246

12471247
static int i82365_drv_pcmcia_resume(struct platform_device *dev)

‎drivers/pcmcia/m32r_cfc.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ static struct pccard_operations pcc_operations = {
699699
static int cfc_drv_pcmcia_suspend(struct platform_device *dev,
700700
pm_message_t state)
701701
{
702-
return pcmcia_socket_dev_suspend(&dev->dev, state);
702+
return pcmcia_socket_dev_suspend(&dev->dev);
703703
}
704704

705705
static int cfc_drv_pcmcia_resume(struct platform_device *dev)

‎drivers/pcmcia/m32r_pcc.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ static struct pccard_operations pcc_operations = {
675675
static int pcc_drv_pcmcia_suspend(struct platform_device *dev,
676676
pm_message_t state)
677677
{
678-
return pcmcia_socket_dev_suspend(&dev->dev, state);
678+
return pcmcia_socket_dev_suspend(&dev->dev);
679679
}
680680

681681
static int pcc_drv_pcmcia_resume(struct platform_device *dev)

‎drivers/pcmcia/m8xx_pcmcia.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1296,7 +1296,7 @@ static int m8xx_remove(struct of_device *ofdev)
12961296
#ifdef CONFIG_PM
12971297
static int m8xx_suspend(struct platform_device *pdev, pm_message_t state)
12981298
{
1299-
return pcmcia_socket_dev_suspend(&pdev->dev, state);
1299+
return pcmcia_socket_dev_suspend(&pdev->dev);
13001300
}
13011301

13021302
static int m8xx_resume(struct platform_device *pdev)

‎drivers/pcmcia/omap_cf.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ static int __exit omap_cf_remove(struct platform_device *pdev)
334334

335335
static int omap_cf_suspend(struct platform_device *pdev, pm_message_t mesg)
336336
{
337-
return pcmcia_socket_dev_suspend(&pdev->dev, mesg);
337+
return pcmcia_socket_dev_suspend(&pdev->dev);
338338
}
339339

340340
static int omap_cf_resume(struct platform_device *pdev)

0 commit comments

Comments
 (0)