if (!mac) return -EIO; 
spider_net_setup_netdev(struct spider_net_card *card){	int result;	struct net_device *netdev = card->netdev;	struct device_node *dn;	struct sockaddr addr;	u8 *mac;	SET_MODULE_OWNER(netdev);	SET_NETDEV_DEV(netdev, &card->pdev->dev);	pci_set_drvdata(card->pdev, netdev);	spin_lock_init(&card->intmask_lock);	netdev->irq = card->pdev->irq;	card->options.rx_csum = SPIDER_NET_RX_CSUM_DEFAULT;	spider_net_setup_netdev_ops(netdev);	netdev->features = 0;	/* some time: NETIF_F_HW_VLAN_TX | NETIF_F_HW_VLAN_RX |	 *		NETIF_F_HW_VLAN_FILTER */	netdev->irq = card->pdev->irq;	dn = pci_device_to_OF_node(card->pdev);	mac = (u8 *)get_property(dn, "local-mac-address", NULL);	memcpy(addr.sa_data, mac, ETH_ALEN);	result = spider_net_set_mac(netdev, &addr);	if ((result) && (netif_msg_probe(card)))		pr_err("Failed to set MAC address: %i\n", result);	result = register_netdev(netdev);	if (result) {		if (netif_msg_probe(card))			pr_err("Couldn't register net_device: %i\n",				  result);		return result;	}	if (netif_msg_probe(card))		pr_info("Initialized device %s.\n", netdev->name);	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/543cec517dbc07c7c801ccacd02141d99f09f756/spider_net.c/clean/drivers/net/spider_net.c