Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325441
b: refs/heads/master
c: 8143941
h: refs/heads/master
i:
  325439: 60d2a53
v: v3
  • Loading branch information
YAMANE Toshiaki authored and Greg Kroah-Hartman committed Sep 21, 2012
1 parent d9338a6 commit 1846b45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 428ed14f366276550a70014ed80be941d7e721d5
refs/heads/master: 814394100d5bfd5b33cddede907a4e0a216b93b6
18 changes: 3 additions & 15 deletions trunk/drivers/staging/rts_pstor/rtsx.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,12 +352,8 @@ static int rtsx_suspend(struct pci_dev *pci, pm_message_t state)
struct rtsx_dev *dev = (struct rtsx_dev *)pci_get_drvdata(pci);
struct rtsx_chip *chip;

dev_info(&dev->pci->dev, "Ready to suspend\n");

if (!dev) {
dev_err(&dev->pci->dev, "Invalid memory\n");
if (!dev)
return 0;
}

/* lock the device pointers */
mutex_lock(&(dev->dev_mutex));
Expand Down Expand Up @@ -391,12 +387,8 @@ static int rtsx_resume(struct pci_dev *pci)
struct rtsx_dev *dev = (struct rtsx_dev *)pci_get_drvdata(pci);
struct rtsx_chip *chip;

dev_info(&dev->pci->dev, "Ready to resume\n");

if (!dev) {
dev_err(&dev->pci->dev, "Invalid memory\n");
if (!dev)
return 0;
}

chip = dev->chip;

Expand Down Expand Up @@ -441,12 +433,8 @@ static void rtsx_shutdown(struct pci_dev *pci)
struct rtsx_dev *dev = (struct rtsx_dev *)pci_get_drvdata(pci);
struct rtsx_chip *chip;

dev_info(&dev->pci->dev, "Ready to shutdown\n");

if (!dev) {
dev_err(&dev->pci->dev, "Invalid memory\n");
if (!dev)
return;
}

chip = dev->chip;

Expand Down

0 comments on commit 1846b45

Please sign in to comment.