diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-03-31 18:27:37 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-03-31 18:27:37 -0400 |
commit | 01d5f3b598b18a5035426c30801adf65822dbd0c (patch) | |
tree | 156c85882676ff9fb1759505ef9eee89814c8629 /drivers/ata/pata_imx.c | |
parent | 9d919e8d5b04e987b0378cfd73df6cdd2b19e9db (diff) | |
parent | 03803ef66d22702af124d21552f90ac32da9fef5 (diff) |
Merge branch 'for-3.15' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/libata
Pull libata updates from Tejun Heo:
"A lot of activities on libata side this time.
- A lot of changes around ahci. Various embedded platforms are
implementing ahci controllers. Some were built atop ahci_platform,
others were doing their own things. Hans made some structural
changes to libahci and librarized ahci_platform so that ahci
platform drivers can share more common code. A couple platform
drivers are added on top of that and several are added to replace
older drivers which were doing their own things (older ones are
scheduled to be removed).
- Dan finishes the patchset to make libata PM operations
asynchronous. Combined with one patch being routed through scsi,
this should speed resume measurably.
- Various fixes and cleanups from Bartlomiej and others"
* 'for-3.15' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/libata: (61 commits)
ata: fix Marvell SATA driver dependencies
ata: fix ARASAN CompactFlash PATA driver dependencies
ata: remove superfluous casts
ata: sata_highbank: remove superfluous cast
ata: fix Calxeda Highbank SATA driver dependencies
ata: fix R-Car SATA driver dependencies
ARM: davinci: da850: update SATA AHCI support
ata: add new-style AHCI platform driver for DaVinci DA850 AHCI controller
ata: move library code from ahci_platform.c to libahci_platform.c
ata: ahci_platform: fix ahci_platform_data->suspend method handling
libata: remove unused ata_sas_port_async_resume() stub
libata.h: add stub for ata_sas_port_resume
libata: async resume
libata, libsas: kill pm_result and related cleanup
ata: Fix compiler warning with APM X-Gene host controller driver
arm64: Add APM X-Gene SoC AHCI SATA host controller DTS entries
ata: Add APM X-Gene SoC AHCI SATA host controller driver
Documentation: Add documentation for the APM X-Gene SoC SATA host controller DTS binding
arm64: Add APM X-Gene SoC 15Gbps Multi-purpose PHY DTS entries
ata: ahci_sunxi: fix code formatting
...
Diffstat (limited to 'drivers/ata/pata_imx.c')
-rw-r--r-- | drivers/ata/pata_imx.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/drivers/ata/pata_imx.c b/drivers/ata/pata_imx.c index b0b18ec5465f..e0872db913d6 100644 --- a/drivers/ata/pata_imx.c +++ b/drivers/ata/pata_imx.c | |||
@@ -15,7 +15,6 @@ | |||
15 | */ | 15 | */ |
16 | #include <linux/kernel.h> | 16 | #include <linux/kernel.h> |
17 | #include <linux/module.h> | 17 | #include <linux/module.h> |
18 | #include <linux/init.h> | ||
19 | #include <linux/blkdev.h> | 18 | #include <linux/blkdev.h> |
20 | #include <scsi/scsi_host.h> | 19 | #include <scsi/scsi_host.h> |
21 | #include <linux/ata.h> | 20 | #include <linux/ata.h> |
@@ -100,13 +99,9 @@ static int pata_imx_probe(struct platform_device *pdev) | |||
100 | struct resource *io_res; | 99 | struct resource *io_res; |
101 | int ret; | 100 | int ret; |
102 | 101 | ||
103 | io_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | ||
104 | if (io_res == NULL) | ||
105 | return -EINVAL; | ||
106 | |||
107 | irq = platform_get_irq(pdev, 0); | 102 | irq = platform_get_irq(pdev, 0); |
108 | if (irq <= 0) | 103 | if (irq < 0) |
109 | return -EINVAL; | 104 | return irq; |
110 | 105 | ||
111 | priv = devm_kzalloc(&pdev->dev, | 106 | priv = devm_kzalloc(&pdev->dev, |
112 | sizeof(struct pata_imx_priv), GFP_KERNEL); | 107 | sizeof(struct pata_imx_priv), GFP_KERNEL); |
@@ -136,11 +131,10 @@ static int pata_imx_probe(struct platform_device *pdev) | |||
136 | ap->pio_mask = ATA_PIO0; | 131 | ap->pio_mask = ATA_PIO0; |
137 | ap->flags |= ATA_FLAG_SLAVE_POSS; | 132 | ap->flags |= ATA_FLAG_SLAVE_POSS; |
138 | 133 | ||
139 | priv->host_regs = devm_ioremap(&pdev->dev, io_res->start, | 134 | io_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
140 | resource_size(io_res)); | 135 | priv->host_regs = devm_ioremap_resource(&pdev->dev, io_res); |
141 | if (!priv->host_regs) { | 136 | if (IS_ERR(priv->host_regs)) { |
142 | dev_err(&pdev->dev, "failed to map IO/CTL base\n"); | 137 | ret = PTR_ERR(priv->host_regs); |
143 | ret = -EBUSY; | ||
144 | goto err; | 138 | goto err; |
145 | } | 139 | } |
146 | 140 | ||