linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch 05/20] pata_acpi-restore-driver versus libata-clean-up-sff-init-mess
@ 2007-05-11  5:48 akpm
  2007-05-11 11:43 ` Tejun Heo
  0 siblings, 1 reply; 2+ messages in thread
From: akpm @ 2007-05-11  5:48 UTC (permalink / raw)
  To: jeff; +Cc: linux-ide, akpm, alan, htejun

From: Andrew Morton <akpm@linux-foundation.org>

If you apply both libata-clean-up-sff-init-mess.patch and
pata_acpi-restore-driver.patch, you'll need to add this patch to
pata_acpi-restore-driver.patch

Cc: Tejun Heo <htejun@gmail.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/ata/pata_acpi.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff -puN drivers/ata/pata_acpi.c~pata_acpi-restore-driver-vs-libata-clean-up-sff-init-mess-fix drivers/ata/pata_acpi.c
--- a/drivers/ata/pata_acpi.c~pata_acpi-restore-driver-vs-libata-clean-up-sff-init-mess-fix
+++ a/drivers/ata/pata_acpi.c
@@ -371,7 +371,7 @@ static const struct ata_port_operations 
 
 static int pacpi_init_one (struct pci_dev *pdev, const struct pci_device_id *id)
 {
-	static struct ata_port_info info = {
+	static const struct ata_port_info info = {
 		.sht		= &pacpi_sht,
 		.flags		= ATA_FLAG_SLAVE_POSS | ATA_FLAG_SRST,
 
@@ -381,11 +381,11 @@ static int pacpi_init_one (struct pci_de
 
 		.port_ops	= &pacpi_ops,
 	};
-	struct ata_port_info *port_info[1] = { &info };
+	const struct ata_port_info *ppi[] = { &info, NULL };
 
 	if (!ata_pata_acpi_present(pdev))
 		return -ENODEV;
-	return ata_pci_init_one(pdev, port_info, 1);
+	return ata_pci_init_one(pdev, ppi);
 }
 
 static const struct pci_device_id pacpi_pci_tbl[] = {
_

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

end of thread, other threads:[~2007-05-11 11:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-11  5:48 [patch 05/20] pata_acpi-restore-driver versus libata-clean-up-sff-init-mess akpm
2007-05-11 11:43 ` Tejun Heo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).