/* if we can read register 22, the chip revision is C or higher  */
static int mcs7830_get_rev(struct usbnet *dev)
/* if we can read register 22, the chip revision is C or higher  */
static int mcs7830_get_rev(struct usbnet *dev)
{
	u8 dummy[2];
	int ret;
	ret = mcs7830_get_reg(dev, HIF_REG_22, 2, dummy);
	if (ret > 0)
		return 2;
	return 1;
}