ide: remove hw_regs_t typedef
Remove hw_regs_t typedef and rename struct hw_regs_s to struct ide_hw. There should be no functional changes caused by this patch. Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
This commit is contained in:
@@ -51,11 +51,11 @@ static int q40ide_default_irq(unsigned long base)
|
||||
/*
|
||||
* Addresses are pretranslated for Q40 ISA access.
|
||||
*/
|
||||
static void q40_ide_setup_ports(hw_regs_t *hw, unsigned long base,
|
||||
static void q40_ide_setup_ports(struct ide_hw *hw, unsigned long base,
|
||||
ide_ack_intr_t *ack_intr,
|
||||
int irq)
|
||||
{
|
||||
memset(hw, 0, sizeof(hw_regs_t));
|
||||
memset(hw, 0, sizeof(*hw));
|
||||
/* BIG FAT WARNING:
|
||||
assumption: only DATA port is ever used in 16 bit mode */
|
||||
hw->io_ports.data_addr = Q40_ISA_IO_W(base);
|
||||
@@ -135,7 +135,7 @@ static const char *q40_ide_names[Q40IDE_NUM_HWIFS]={
|
||||
static int __init q40ide_init(void)
|
||||
{
|
||||
int i;
|
||||
hw_regs_t hw[Q40IDE_NUM_HWIFS], *hws[] = { NULL, NULL };
|
||||
struct ide_hw hw[Q40IDE_NUM_HWIFS], *hws[] = { NULL, NULL };
|
||||
|
||||
if (!MACH_IS_Q40)
|
||||
return -ENODEV;
|
||||
|
Reference in New Issue
Block a user