[PATCH] minor crapectomy in drivers/char/misc.c

Alexander Viro (viro@math.psu.edu)
Fri, 18 May 2001 17:41:48 -0400 (EDT)


% find . -type f -print | xargs grep -nwC1 radio_init
./drivers/char/misc.c-75-extern int ds1286_init(void);
./drivers/char/misc.c:76:extern int radio_init(void);
./drivers/char/misc.c-77-extern int pmu_device_init(void);
--
./drivers/char/misc.c-265-#ifdef CONFIG_MISC_RADIO
./drivers/char/misc.c:266:      radio_init();
./drivers/char/misc.c-267-#endif
% find . -type f -print | xargs grep -nw CONFIG_MISC_RADIO 
./drivers/char/misc.c:265:#ifdef CONFIG_MISC_RADIO
% 

IOW, radio_init() is never defined and CONFIG_MISC_RADIO is never set.

Proposed fix: vi -c'/radio_init/d|/CONFIG_MISC_RADIO/|,+2d|x' drivers/char/misc.c

Al

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/