File tree Expand file tree Collapse file tree
powerpc/platforms/powermac Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424/*
2525 * Setup options
2626 */
27- struct drive_info_struct { char dummy [32 ]; } drive_info ;
2827struct screen_info screen_info ;
2928
3029extern int root_mountflags ;
Original file line number Diff line number Diff line change 2525#include <asm/machvec.h>
2626#include <asm/system.h>
2727
28- /*
29- * This is here so we can use the CMOS detection in ide-probe.c to
30- * determine what drives are present. In theory, we don't need this
31- * as the auto-detection could be done via ide-probe.c:do_probe() but
32- * in practice that would be much slower, which is painful when
33- * running in the simulator. Note that passing zeroes in DRIVE_INFO
34- * is sufficient (the IDE driver will autodetect the drive geometry).
35- */
36- char drive_info [4 * 16 ];
37-
3828void __init
3929dig_setup (char * * cmdline_p )
4030{
Original file line number Diff line number Diff line change @@ -124,20 +124,6 @@ struct screen_info sn_screen_info = {
124124 .orig_video_points = 16
125125};
126126
127- /*
128- * This is here so we can use the CMOS detection in ide-probe.c to
129- * determine what drives are present. In theory, we don't need this
130- * as the auto-detection could be done via ide-probe.c:do_probe() but
131- * in practice that would be much slower, which is painful when
132- * running in the simulator. Note that passing zeroes in DRIVE_INFO
133- * is sufficient (the IDE driver will autodetect the drive geometry).
134- */
135- #ifdef CONFIG_IA64_GENERIC
136- extern char drive_info [4 * 16 ];
137- #else
138- char drive_info [4 * 16 ];
139- #endif
140-
141127/*
142128 * This routine can only be used during init, since
143129 * smp_boot_data is an init data structure.
Original file line number Diff line number Diff line change 1818#include <asm/irq.h>
1919#include <asm/tlbflush.h>
2020
21- #if defined(CONFIG_BLK_DEV_IDE ) || defined(CONFIG_BLK_DEV_HD ) || defined(CONFIG_BLK_DEV_IDE_MODULE ) || defined(CONFIG_BLK_DEV_HD_MODULE )
22- extern struct drive_info_struct drive_info ;
23- EXPORT_SYMBOL (drive_info );
24- #endif
25-
2621/* platform dependent support */
2722EXPORT_SYMBOL (boot_cpu_data );
2823EXPORT_SYMBOL (dump_fpu );
Original file line number Diff line number Diff line change 3737extern void init_mmu (void );
3838#endif
3939
40- #if defined(CONFIG_BLK_DEV_IDE ) || defined(CONFIG_BLK_DEV_HD ) \
41- || defined(CONFIG_BLK_DEV_IDE_MODULE ) \
42- || defined(CONFIG_BLK_DEV_HD_MODULE )
43- struct drive_info_struct { char dummy [32 ]; } drive_info ;
44- #endif
45-
4640extern char _end [];
4741
4842/*
Original file line number Diff line number Diff line change 8282
8383#undef SHOW_GATWICK_IRQS
8484
85- unsigned char drive_info ;
86-
8785int ppc_override_l2cr = 0 ;
8886int ppc_override_l2cr_value ;
8987int has_l2cache = 0 ;
Original file line number Diff line number Diff line change 3131
3232extern int dump_fpu (struct pt_regs * , elf_fpregset_t * );
3333
34- #if 0
35- /* Not yet - there's no declaration of drive_info anywhere. */
36- #if defined(CONFIG_BLK_DEV_IDE ) || defined(CONFIG_BLK_DEV_HD ) || defined(CONFIG_BLK_DEV_IDE_MODULE ) || defined(CONFIG_BLK_DEV_HD_MODULE )
37- extern struct drive_info_struct drive_info ;
38- EXPORT_SYMBOL (drive_info );
39- #endif
40- #endif
41-
4234/* platform dependent support */
4335EXPORT_SYMBOL (dump_fpu );
4436EXPORT_SYMBOL (iounmap );
Original file line number Diff line number Diff line change @@ -94,7 +94,6 @@ unsigned long saved_video_mode;
9494/*
9595 * Setup options
9696 */
97- struct drive_info_struct { char dummy [32 ]; } drive_info ;
9897struct screen_info screen_info ;
9998struct sys_desc_table_struct {
10099 unsigned short length ;
@@ -572,7 +571,6 @@ void __init setup_arch(char **cmdline_p)
572571 unsigned long kernel_end ;
573572
574573 ROOT_DEV = old_decode_dev (ORIG_ROOT_DEV );
575- drive_info = DRIVE_INFO ;
576574 screen_info = SCREEN_INFO ;
577575 edid_info = EDID_INFO ;
578576 saved_video_mode = SAVED_VIDEO_MODE ;
Original file line number Diff line number Diff line change @@ -39,11 +39,6 @@ extern void __write_lock_failed(rwlock_t *rw);
3939extern void __read_lock_failed (rwlock_t * rw );
4040#endif
4141
42- #if defined(CONFIG_BLK_DEV_IDE ) || defined(CONFIG_BLK_DEV_HD ) || defined(CONFIG_BLK_DEV_IDE_MODULE ) || defined(CONFIG_BLK_DEV_HD_MODULE )
43- extern struct drive_info_struct drive_info ;
44- EXPORT_SYMBOL (drive_info );
45- #endif
46-
4742/* platform dependent support */
4843EXPORT_SYMBOL (boot_cpu_data );
4944//EXPORT_SYMBOL(dump_fpu);
You can’t perform that action at this time.
0 commit comments