atp870u: Initialize tables earlier
authorOndrej Zary <linux@rainbow-software.org>
Tue, 17 Nov 2015 18:24:25 +0000 (19:24 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 26 Nov 2015 03:08:53 +0000 (22:08 -0500)
commitf5f53a38c2f8671f9fc249c711411ba44d76a618
treef9ad9d737dc860129587ae75ea8b247951ce8e03
parent8177c507523e053011861cce08cb73a77d5896e3
atp870u: Initialize tables earlier

Call _init_tables before chip-specific initialization. This avoids code
duplication and fixes a bug(?) in 880 init where the values read from flash
into atpdev->sp are then overwritten by calling init_tables.

Signed-off-by: Ondrej Zary <linux@rainbow-software.org>
Reviewed-by: Hannes Reinicke <hare@suse.de>
Acked-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/atp870u.c