/* start lcs device and make it runnable This function will be called by user doing ifconfig xxx up  */
static int lcs_open_device(struct net_device *dev)
/* start lcs device and make it runnable This function will be called by user doing ifconfig xxx up  */
static int lcs_open_device(struct net_device *dev)
{
	struct lcs_card *card;
	int rc;
	LCS_DBF_TEXT(2, trace, "opendev");
	card = (struct lcs_card *) dev->ml_priv;
	rc = lcs_detect(card);
	if (rc) {
		pr_err("Error in opening device!\n");
	} else {
		dev->flags |= IFF_UP;
		netif_carrier_on(dev);
		netif_wake_queue(dev);
		card->state = DEV_STATE_UP;
	}
	return rc;
}