[libata] ahci_platform: fix DT probing
authorRob Herring <rob.herring@calxeda.com>
Wed, 16 Nov 2011 03:00:56 +0000 (21:00 -0600)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 17 Nov 2011 07:10:49 +0000 (02:10 -0500)
commitff956135008bca99b5e38f48f0d10a2c04fef2d6
tree651bd0c98ed22e52ac53181cdfa0c280bd81c0c8
parentcfcfc9eca2bcbd26a8e206baeb005b055dbf8e37
[libata] ahci_platform: fix DT probing

The change in commit 904c04feaf13ed "ahci_platform: Add the board_ids..."
doesn't work for the DT probing case as platform_get_device_id returns
NULL. Pick the default ahci_port_info in this case.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Acked-by: Anton Vorontsov <cbouatmailru@gmail.com>
Cc: Richard Zhu <richard.zhu@linaro.org>
Cc: linux-ide@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/ahci_platform.c