X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=include%2Flinux%2Fide.h;h=77ae55d4c13cb5e71c8d9e1524e1a98dc5e4e352;hb=b8cbfa692485bf7568eda3d2f37545a76efb7c93;hp=3461abc1e8541a6dd90ab7291e1eda74fa352ab2;hpb=2fc2991175bf77395e6b15fe6b2304d3bf72da40;p=powerpc.git diff --git a/include/linux/ide.h b/include/linux/ide.h index 3461abc1e8..77ae55d4c1 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h @@ -230,6 +230,7 @@ typedef struct hw_regs_s { int dma; /* our dma entry */ ide_ack_intr_t *ack_intr; /* acknowledge interrupt */ hwif_chipset_t chipset; + struct device *dev; } hw_regs_t; /* @@ -266,6 +267,10 @@ static inline void ide_std_init_ports(hw_regs_t *hw, #include +#ifndef MAX_HWIFS +#define MAX_HWIFS CONFIG_IDE_MAX_HWIFS +#endif + /* needed on alpha, x86/x86_64, ia64, mips, ppc32 and sh */ #ifndef IDE_ARCH_OBSOLETE_DEFAULTS # define ide_default_io_base(index) (0)