patch-2.3.14 linux/net/econet/econet.c
Next file: linux/net/ethernet/eth.c
Previous file: linux/net/decnet/sysctl_net_decnet.c
Back to the patch index
Back to the overall index
- Lines: 54
- Date:
Wed Aug 18 11:38:49 1999
- Orig file:
v2.3.13/linux/net/econet/econet.c
- Orig date:
Thu Jul 8 15:42:21 1999
diff -u --recursive --new-file v2.3.13/linux/net/econet/econet.c linux/net/econet/econet.c
@@ -89,7 +89,7 @@
struct ec_device
{
- struct device *dev; /* Real device structure */
+ struct net_device *dev; /* Real device structure */
unsigned char station, net; /* Econet protocol address */
struct ec_device *prev, *next; /* Linked list */
};
@@ -102,7 +102,7 @@
* Faster version of edev_get - call with IRQs off
*/
-static __inline__ struct ec_device *__edev_get(struct device *dev)
+static __inline__ struct ec_device *__edev_get(struct net_device *dev)
{
struct ec_device *edev;
for (edev = edevlist; edev; edev = edev->next)
@@ -117,7 +117,7 @@
* Find an Econet device given its `dev' pointer. This is IRQ safe.
*/
-static struct ec_device *edev_get(struct device *dev)
+static struct ec_device *edev_get(struct net_device *dev)
{
struct ec_device *edev;
unsigned long flags;
@@ -270,7 +270,7 @@
{
struct sock *sk = sock->sk;
struct sockaddr_ec *saddr=(struct sockaddr_ec *)msg->msg_name;
- struct device *dev;
+ struct net_device *dev;
struct ec_addr addr;
struct ec_device *edev;
int err;
@@ -591,7 +591,7 @@
{
struct ifreq ifr;
struct ec_device *edev;
- struct device *dev;
+ struct net_device *dev;
unsigned long flags;
struct sockaddr_ec *sec;
@@ -1030,7 +1030,7 @@
static int econet_notifier(struct notifier_block *this, unsigned long msg, void *data)
{
- struct device *dev = (struct device *)data;
+ struct net_device *dev = (struct net_device *)data;
struct ec_device *edev;
unsigned long flags;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)