patch-2.3.14 linux/net/x25/x25_route.c

Next file: linux/CREDITS
Previous file: linux/net/x25/x25_link.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.13/linux/net/x25/x25_route.c linux/net/x25/x25_route.c
@@ -50,7 +50,7 @@
 /*
  *	Add a new route.
  */
-static int x25_add_route(x25_address *address, unsigned int sigdigits, struct device *dev)
+static int x25_add_route(x25_address *address, unsigned int sigdigits, struct net_device *dev)
 {
 	struct x25_route *x25_route;
 	unsigned long flags;
@@ -105,7 +105,7 @@
 	restore_flags(flags);
 }
 
-static int x25_del_route(x25_address *address, unsigned int sigdigits, struct device *dev)
+static int x25_del_route(x25_address *address, unsigned int sigdigits, struct net_device *dev)
 {
 	struct x25_route *x25_route;
 
@@ -122,7 +122,7 @@
 /*
  *	A device has been removed, remove its routes.
  */
-void x25_route_device_down(struct device *dev)
+void x25_route_device_down(struct net_device *dev)
 {
 	struct x25_route *route, *x25_route = x25_route_list;
 
@@ -138,9 +138,9 @@
 /*
  *	Check that the device given is a valid X.25 interface that is "up".
  */
-struct device *x25_dev_get(char *devname)
+struct net_device *x25_dev_get(char *devname)
 {
-	struct device *dev;
+	struct net_device *dev;
 
 	if ((dev = dev_get(devname)) == NULL)
 		return NULL;
@@ -158,7 +158,7 @@
 /*
  *	Find a device given an X.25 address.
  */
-struct device *x25_get_route(x25_address *addr)
+struct net_device *x25_get_route(x25_address *addr)
 {
 	struct x25_route *route, *use = NULL;
 
@@ -182,7 +182,7 @@
 int x25_route_ioctl(unsigned int cmd, void *arg)
 {
 	struct x25_route_struct x25_route;
-	struct device *dev;
+	struct net_device *dev;
 
 	switch (cmd) {
 


FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)