atari_scsi: Convert to platform device
Convert atari_scsi to platform device and eliminate scsi_register(). Validate __setup options later on so that module options are checked as well. Remove the comment about the scsi mid-layer disabling the host irq as it is no longer true (AFAICT). Also remove the obsolete slow interrupt stuff (IRQ_TYPE_SLOW == 0 anyway). Signed-off-by: Finn Thain <fthain@telegraphics.com.au> Reviewed-by: Hannes Reinecke <hare@suse.de> Tested-by: Michael Schmitz <schmitzmic@gmail.com> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:

committed by
Christoph Hellwig

parent
16b29e75a7
commit
3ff228af84
@@ -858,6 +858,24 @@ static struct platform_device *atari_netusbee_devices[] __initdata = {
|
||||
};
|
||||
#endif /* CONFIG_ATARI_ETHERNEC */
|
||||
|
||||
#ifdef CONFIG_ATARI_SCSI
|
||||
static const struct resource atari_scsi_st_rsrc[] __initconst = {
|
||||
{
|
||||
.flags = IORESOURCE_IRQ,
|
||||
.start = IRQ_MFP_FSCSI,
|
||||
.end = IRQ_MFP_FSCSI,
|
||||
},
|
||||
};
|
||||
|
||||
static const struct resource atari_scsi_tt_rsrc[] __initconst = {
|
||||
{
|
||||
.flags = IORESOURCE_IRQ,
|
||||
.start = IRQ_TT_MFP_SCSI,
|
||||
.end = IRQ_TT_MFP_SCSI,
|
||||
},
|
||||
};
|
||||
#endif
|
||||
|
||||
int __init atari_platform_init(void)
|
||||
{
|
||||
int rv = 0;
|
||||
@@ -892,6 +910,15 @@ int __init atari_platform_init(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ATARI_SCSI
|
||||
if (ATARIHW_PRESENT(ST_SCSI))
|
||||
platform_device_register_simple("atari_scsi", -1,
|
||||
atari_scsi_st_rsrc, ARRAY_SIZE(atari_scsi_st_rsrc));
|
||||
else if (ATARIHW_PRESENT(TT_SCSI))
|
||||
platform_device_register_simple("atari_scsi", -1,
|
||||
atari_scsi_tt_rsrc, ARRAY_SIZE(atari_scsi_tt_rsrc));
|
||||
#endif
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user