Remove redundant declaration for uart devclass.
Commint some unrelated, but harmless, FDT ifdefs.
This commit is contained in:
parent
4b489a60e1
commit
0da1cf4094
@ -48,8 +48,6 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
static int usart_at91_probe(device_t dev);
|
||||
|
||||
extern struct uart_class at91_usart_class;
|
||||
|
||||
static device_method_t usart_at91_methods[] = {
|
||||
/* Device interface */
|
||||
DEVMETHOD(device_probe, usart_at91_probe),
|
||||
|
@ -26,8 +26,10 @@
|
||||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include "opt_platform.h"
|
||||
#include "opt_uart.h"
|
||||
|
||||
#ifndef FDT
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
@ -48,7 +50,6 @@ __FBSDID("$FreeBSD$");
|
||||
bus_space_tag_t uart_bus_space_io;
|
||||
bus_space_tag_t uart_bus_space_mem;
|
||||
|
||||
extern struct uart_class at91_usart_class;
|
||||
extern struct bus_space at91_bs_tag;
|
||||
|
||||
int
|
||||
@ -86,3 +87,4 @@ uart_cpu_getdev(int devtype, struct uart_devinfo *di)
|
||||
uart_getenv(devtype, di, class);
|
||||
return (0);
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user