From: Mikael Pettersson Date: Sun, 25 Feb 2007 16:51:15 +0000 (+0100) Subject: sata_promise: simplify port setup X-Git-Tag: v2.6.21-rc2~25^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=098cdff3d40286f87062c17cd07e98ca7ad94184;p=pandora-kernel.git sata_promise: simplify port setup Each place in pdc_ata_init_one() that initialises a SATA port first calls pdc_ata_setup_port(), and then manually assigns the port's ->scr_addr. Simplify the code by extending pdc_ata_setup_port() to also handle scr_addr initialisation; for PATA ports we pass NULL as scr_addr. The initialisation of the PATA-only 20619 redundantly set up scr_addr for the ports. Remove this. Tested on 20619, 20575, and 20775 chips. Signed-off-by: Mikael Pettersson Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed