[libata] ata_piix: cleanup dmi strings checking
authorJiri Slaby <jirislaby@gmail.com>
Wed, 10 Dec 2008 13:07:22 +0000 (14:07 +0100)
committerJeff Garzik <jgarzik@redhat.com>
Mon, 29 Dec 2008 12:40:06 +0000 (07:40 -0500)
commit3c387730ef2639811306c631e820711a70b98c5d
treea35ad902e603e28d7dd87deaaf94b5cc6d93f772
parentd61c72e52b98411d1cfef1fdb3f5a8bb070f8966
[libata] ata_piix: cleanup dmi strings checking

Commit
ATA: piix, fix pointer deref on suspend
fixed a possible oops in an ugly manner. Use newly introduced dmi_match()
to make the code pretty again.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Cc: Alexandru Romanescu <a_romanescu@yahoo.co.uk>
Cc: Tejun Heo <tj@kernel.org>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/ata_piix.c