Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ca99140a authored by Alexander Shiyan's avatar Alexander Shiyan Committed by Tejun Heo
Browse files

pata_of_platform: Remove "electra-ide" quirk



"electra-ide" is not used anywhere in the kernel and could be
represented in devicetree in a normal way.
This patch removes specific quirk for "electra-ide".

Signed-off-by: default avatarAlexander Shiyan <shc_work@mail.ru>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 4f37b504
Loading
Loading
Loading
Loading
+6 −16
Original line number Original line Diff line number Diff line
@@ -35,21 +35,12 @@ static int pata_of_platform_probe(struct platform_device *ofdev)
		return -EINVAL;
		return -EINVAL;
	}
	}


	if (of_device_is_compatible(dn, "electra-ide")) {
		/* Altstatus is really at offset 0x3f6 from the primary window
		 * on electra-ide. Adjust ctl_res and io_res accordingly.
		 */
		ctl_res = io_res;
		ctl_res.start = ctl_res.start+0x3f6;
		io_res.end = ctl_res.start-1;
	} else {
	ret = of_address_to_resource(dn, 1, &ctl_res);
	ret = of_address_to_resource(dn, 1, &ctl_res);
	if (ret) {
	if (ret) {
		dev_err(&ofdev->dev, "can't get CTL address from "
		dev_err(&ofdev->dev, "can't get CTL address from "
			"device tree\n");
			"device tree\n");
		return -EINVAL;
		return -EINVAL;
	}
	}
	}


	irq_res = platform_get_resource(ofdev, IORESOURCE_IRQ, 0);
	irq_res = platform_get_resource(ofdev, IORESOURCE_IRQ, 0);
	if (irq_res)
	if (irq_res)
@@ -79,7 +70,6 @@ static int pata_of_platform_probe(struct platform_device *ofdev)


static struct of_device_id pata_of_platform_match[] = {
static struct of_device_id pata_of_platform_match[] = {
	{ .compatible = "ata-generic", },
	{ .compatible = "ata-generic", },
	{ .compatible = "electra-ide", },
	{ },
	{ },
};
};
MODULE_DEVICE_TABLE(of, pata_of_platform_match);
MODULE_DEVICE_TABLE(of, pata_of_platform_match);