/* Returns: -ENODEV if no register could be found  */
static int speedstep_find_register(void)
/* Returns: -ENODEV if no register could be found  */
static int speedstep_find_register(void)
{
	if (!speedstep_chipset_dev)
		return -ENODEV;
	pci_read_config_dword(speedstep_chipset_dev, 0x40, &pmbase);
	if (!(pmbase & 0x01)) {
		printk(KERN_ERR "speedstep-ich: could not find speedstep register\n");
		return -ENODEV;
	}
	pmbase &= 0xFFFFFFFE;
	if (!pmbase) {
		printk(KERN_ERR "speedstep-ich: could not find speedstep register\n");
		return -ENODEV;
	}
	dprintk("pmbase is 0x%x\n", pmbase);
	return 0;
}