mirror of
https://github.com/torvalds/linux.git
synced 2024-11-13 07:31:45 +00:00
drm/tegra: Changes for v5.7-rc1
This contains some minor cleanups, nothing too exciting. -----BEGIN PGP SIGNATURE----- iQJHBAABCAAxFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAl5rvgETHHRyZWRpbmdA bnZpZGlhLmNvbQAKCRDdI6zXfz6zoXwZEACLn1yKbPweqYORmiVU0upNtvFjf9qm Emn/dtX2pvfKw/9++dDIF5RgMIIDHXBeei5JS+X3v40xOsAK0xrf66aZ4kBGsdpg cp/eo1g+um2zoohrB7jBvtLa2FqdrRYCs9DY7gotqP5lm+POheOEBs1waS/dTm7B WydvCxtMLeIL0hNDfuvz0HWrCPlKY9CE/SkSP6RUsgQGFNHL9fHyYw0nJHwb2/Fl NzLPx17VX0PDi4rGdkZl+FV6lcsGdIgCJ5zAFqVHrH9nnCXWUZVV5w6cA7LNmph4 xwSV9uQfujTeGxRdrroAbqk8psJ41kHlON6uYZO0nidSfbXCoaFkTDQ+zd9cdwU9 EsQEQSapCK5IpnqvXd/oevEV4E1o5cLbCOllFRInmWWQvSF92Ydbzvp+UOPnTBNQ 6kqLUYcBXcBBa3Zv7TQ6KhyrgkO2rzF8iSZ/DczzVzfzvv1qvHnlWD9n9o2a0J1f 30yv8leIwJmzsi7k9A6OdPZo0+u7cu+bTqifBVFGTkTxxtzoj1BwH/zr1SPlQrjM V953YNymXax9HJtYGCQg5od2kRo9T2kK0s1b0rYtFDmHmy0NPyafSywci0Q/uU8a DutjKgpW1JS5dHVkmlU0RuKDDwBvONfC8l4UOmiI/o0E6dyAah9dDsVcLbbDm92K v44TRik/3nrbpw== =xg7O -----END PGP SIGNATURE----- Merge tag 'drm/tegra/for-5.7-rc1' of git://anongit.freedesktop.org/tegra/linux into drm-next drm/tegra: Changes for v5.7-rc1 This contains some minor cleanups, nothing too exciting. Signed-off-by: Dave Airlie <airlied@redhat.com> From: Thierry Reding <thierry.reding@gmail.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200313171042.2924890-1-thierry.reding@gmail.com
This commit is contained in:
commit
bda1fb0ed0
@ -2503,7 +2503,6 @@ static int tegra_dc_couple(struct tegra_dc *dc)
|
||||
|
||||
static int tegra_dc_probe(struct platform_device *pdev)
|
||||
{
|
||||
struct resource *regs;
|
||||
struct tegra_dc *dc;
|
||||
int err;
|
||||
|
||||
@ -2560,8 +2559,7 @@ static int tegra_dc_probe(struct platform_device *pdev)
|
||||
tegra_powergate_power_off(dc->powergate);
|
||||
}
|
||||
|
||||
regs = platform_get_resource(pdev, IORESOURCE_MEM, 0);
|
||||
dc->regs = devm_ioremap_resource(&pdev->dev, regs);
|
||||
dc->regs = devm_platform_ioremap_resource(pdev, 0);
|
||||
if (IS_ERR(dc->regs))
|
||||
return PTR_ERR(dc->regs);
|
||||
|
||||
@ -2573,7 +2571,13 @@ static int tegra_dc_probe(struct platform_device *pdev)
|
||||
|
||||
err = tegra_dc_rgb_probe(dc);
|
||||
if (err < 0 && err != -ENODEV) {
|
||||
dev_err(&pdev->dev, "failed to probe RGB output: %d\n", err);
|
||||
const char *level = KERN_ERR;
|
||||
|
||||
if (err == -EPROBE_DEFER)
|
||||
level = KERN_DEBUG;
|
||||
|
||||
dev_printk(level, dc->dev, "failed to probe RGB output: %d\n",
|
||||
err);
|
||||
return err;
|
||||
}
|
||||
|
||||
@ -2588,10 +2592,16 @@ static int tegra_dc_probe(struct platform_device *pdev)
|
||||
if (err < 0) {
|
||||
dev_err(&pdev->dev, "failed to register host1x client: %d\n",
|
||||
err);
|
||||
return err;
|
||||
goto disable_pm;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
disable_pm:
|
||||
pm_runtime_disable(&pdev->dev);
|
||||
tegra_dc_rgb_remove(dc);
|
||||
|
||||
return err;
|
||||
}
|
||||
|
||||
static int tegra_dc_remove(struct platform_device *pdev)
|
||||
|
@ -1648,6 +1648,7 @@ static irqreturn_t tegra_hdmi_irq(int irq, void *data)
|
||||
|
||||
static int tegra_hdmi_probe(struct platform_device *pdev)
|
||||
{
|
||||
const char *level = KERN_ERR;
|
||||
struct tegra_hdmi *hdmi;
|
||||
struct resource *regs;
|
||||
int err;
|
||||
@ -1686,21 +1687,36 @@ static int tegra_hdmi_probe(struct platform_device *pdev)
|
||||
}
|
||||
|
||||
hdmi->hdmi = devm_regulator_get(&pdev->dev, "hdmi");
|
||||
if (IS_ERR(hdmi->hdmi)) {
|
||||
dev_err(&pdev->dev, "failed to get HDMI regulator\n");
|
||||
return PTR_ERR(hdmi->hdmi);
|
||||
err = PTR_ERR_OR_ZERO(hdmi->hdmi);
|
||||
if (err) {
|
||||
if (err == -EPROBE_DEFER)
|
||||
level = KERN_DEBUG;
|
||||
|
||||
dev_printk(level, &pdev->dev,
|
||||
"failed to get HDMI regulator: %d\n", err);
|
||||
return err;
|
||||
}
|
||||
|
||||
hdmi->pll = devm_regulator_get(&pdev->dev, "pll");
|
||||
if (IS_ERR(hdmi->pll)) {
|
||||
dev_err(&pdev->dev, "failed to get PLL regulator\n");
|
||||
return PTR_ERR(hdmi->pll);
|
||||
err = PTR_ERR_OR_ZERO(hdmi->pll);
|
||||
if (err) {
|
||||
if (err == -EPROBE_DEFER)
|
||||
level = KERN_DEBUG;
|
||||
|
||||
dev_printk(level, &pdev->dev,
|
||||
"failed to get PLL regulator: %d\n", err);
|
||||
return err;
|
||||
}
|
||||
|
||||
hdmi->vdd = devm_regulator_get(&pdev->dev, "vdd");
|
||||
if (IS_ERR(hdmi->vdd)) {
|
||||
dev_err(&pdev->dev, "failed to get VDD regulator\n");
|
||||
return PTR_ERR(hdmi->vdd);
|
||||
err = PTR_ERR_OR_ZERO(hdmi->vdd);
|
||||
if (err) {
|
||||
if (err == -EPROBE_DEFER)
|
||||
level = KERN_DEBUG;
|
||||
|
||||
dev_printk(level, &pdev->dev,
|
||||
"failed to get VDD regulator: %d\n", err);
|
||||
return err;
|
||||
}
|
||||
|
||||
hdmi->output.dev = &pdev->dev;
|
||||
|
Loading…
Reference in New Issue
Block a user