pata_via: clean up recent tf_load changes
authorTejun Heo <tj@kernel.org>
Thu, 31 Jul 2008 09:02:35 +0000 (18:02 +0900)
committerJeff Garzik <jgarzik@redhat.com>
Fri, 22 Aug 2008 06:19:54 +0000 (02:19 -0400)
commitff04715bd5171d6d5c4ddff40c7bdc8d2dc90f7d
treec6c6407f2a1d42dea3c8235531f02c3492962d2f
parentd127ea7b8643a93d14d1f3c542974407f14d3663
pata_via: clean up recent tf_load changes

Commit bfce5e0179ad059035df28558724ff60af708e09 implemented custom
tf_load for pata_via.  This patch cleans it up a bit.

* Instead of duplicating whole body, copy tf and set ATA_TFLAG_DEVICE
  when necessary.

* Rename via_ata_tf_load() to via_tf_load().

* No need to set .tf_load in via_port_ops_noirq as it inherits from
  via_port_ops.

* Clean up indentation.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Joseph Chan <JosephChan@via.com.tw>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/pata_via.c