/* Device selection hook. If necessary perform clock switching  */
static void it821x_passthru_dev_select(struct ata_port *ap, unsigned int device)
/* Device selection hook. If necessary perform clock switching  */
static void it821x_passthru_dev_select(struct ata_port *ap, unsigned int device)
{
	struct it821x_dev *itdev = ap->private_data;
	if (itdev && device != itdev->last_device) {
		struct ata_device *adev = &ap->link.device[device];
		it821x_program(ap, adev, itdev->pio[adev->devno]);
		itdev->last_device = device;
	}
	ata_sff_dev_select(ap, device);
}