Commit eb865fd2 authored by Arnd Bergmann's avatar Arnd Bergmann

Merge tag 'tegra-for-6.6-soc' of...

Merge tag 'tegra-for-6.6-soc' of git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux into soc/drivers

soc/tegra: Changes for v6.6-rc1

This contains a selection of minor cleanups.

* tag 'tegra-for-6.6-soc' of git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux:
  soc/tegra: cbb: Remove unnecessary print function dev_err()
  soc/tegra: fuse: Sort includes alphabetically
  bus: tegra-gmi: Convert to devm_platform_ioremap_resource()
  soc/tegra: fuse: Use devm_platform_get_and_ioremap_resource()
  soc/tegra: Explicitly include correct DT includes

Link: https://lore.kernel.org/r/20230728094129.3587109-1-thierry.reding@gmail.comSigned-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parents 5ac1ba05 10f975f8
...@@ -211,7 +211,6 @@ static int tegra_gmi_probe(struct platform_device *pdev) ...@@ -211,7 +211,6 @@ static int tegra_gmi_probe(struct platform_device *pdev)
{ {
struct device *dev = &pdev->dev; struct device *dev = &pdev->dev;
struct tegra_gmi *gmi; struct tegra_gmi *gmi;
struct resource *res;
int err; int err;
gmi = devm_kzalloc(dev, sizeof(*gmi), GFP_KERNEL); gmi = devm_kzalloc(dev, sizeof(*gmi), GFP_KERNEL);
...@@ -221,8 +220,7 @@ static int tegra_gmi_probe(struct platform_device *pdev) ...@@ -221,8 +220,7 @@ static int tegra_gmi_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, gmi); platform_set_drvdata(pdev, gmi);
gmi->dev = dev; gmi->dev = dev;
res = platform_get_resource(pdev, IORESOURCE_MEM, 0); gmi->base = devm_platform_ioremap_resource(pdev, 0);
gmi->base = devm_ioremap_resource(dev, res);
if (IS_ERR(gmi->base)) if (IS_ERR(gmi->base))
return PTR_ERR(gmi->base); return PTR_ERR(gmi->base);
......
...@@ -7,13 +7,9 @@ ...@@ -7,13 +7,9 @@
#include <linux/cpufeature.h> #include <linux/cpufeature.h>
#include <linux/debugfs.h> #include <linux/debugfs.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/of.h>
#include <linux/of_device.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/device.h> #include <linux/device.h>
#include <linux/io.h> #include <linux/io.h>
#include <linux/of_irq.h>
#include <linux/of_address.h>
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/ioport.h> #include <linux/ioport.h>
#include <soc/tegra/fuse.h> #include <soc/tegra/fuse.h>
...@@ -126,20 +122,16 @@ int tegra_cbb_get_irq(struct platform_device *pdev, unsigned int *nonsec_irq, ...@@ -126,20 +122,16 @@ int tegra_cbb_get_irq(struct platform_device *pdev, unsigned int *nonsec_irq,
if (num_intr == 2) { if (num_intr == 2) {
irq = platform_get_irq(pdev, index); irq = platform_get_irq(pdev, index);
if (irq <= 0) { if (irq <= 0)
dev_err(&pdev->dev, "failed to get non-secure IRQ: %d\n", irq);
return -ENOENT; return -ENOENT;
}
*nonsec_irq = irq; *nonsec_irq = irq;
index++; index++;
} }
irq = platform_get_irq(pdev, index); irq = platform_get_irq(pdev, index);
if (irq <= 0) { if (irq <= 0)
dev_err(&pdev->dev, "failed to get secure IRQ: %d\n", irq);
return -ENOENT; return -ENOENT;
}
*sec_irq = irq; *sec_irq = irq;
......
...@@ -15,12 +15,10 @@ ...@@ -15,12 +15,10 @@
#include <linux/debugfs.h> #include <linux/debugfs.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/of.h> #include <linux/of.h>
#include <linux/of_device.h> #include <linux/of_address.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/device.h> #include <linux/device.h>
#include <linux/io.h> #include <linux/io.h>
#include <linux/of_irq.h>
#include <linux/of_address.h>
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/ioport.h> #include <linux/ioport.h>
#include <soc/tegra/fuse.h> #include <soc/tegra/fuse.h>
......
...@@ -16,12 +16,9 @@ ...@@ -16,12 +16,9 @@
#include <linux/debugfs.h> #include <linux/debugfs.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/of.h> #include <linux/of.h>
#include <linux/of_device.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/device.h> #include <linux/device.h>
#include <linux/io.h> #include <linux/io.h>
#include <linux/of_irq.h>
#include <linux/of_address.h>
#include <linux/interrupt.h> #include <linux/interrupt.h>
#include <linux/ioport.h> #include <linux/ioport.h>
#include <soc/tegra/fuse.h> #include <soc/tegra/fuse.h>
......
...@@ -125,13 +125,10 @@ static int tegra_fuse_probe(struct platform_device *pdev) ...@@ -125,13 +125,10 @@ static int tegra_fuse_probe(struct platform_device *pdev)
return err; return err;
/* take over the memory region from the early initialization */ /* take over the memory region from the early initialization */
res = platform_get_resource(pdev, IORESOURCE_MEM, 0); fuse->base = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
if (IS_ERR(fuse->base))
return PTR_ERR(fuse->base);
fuse->phys = res->start; fuse->phys = res->start;
fuse->base = devm_ioremap_resource(&pdev->dev, res);
if (IS_ERR(fuse->base)) {
err = PTR_ERR(fuse->base);
return err;
}
fuse->clk = devm_clk_get(&pdev->dev, "fuse"); fuse->clk = devm_clk_get(&pdev->dev, "fuse");
if (IS_ERR(fuse->clk)) { if (IS_ERR(fuse->clk)) {
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
#include <linux/io.h> #include <linux/io.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/kobject.h> #include <linux/kobject.h>
#include <linux/of_device.h> #include <linux/of.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/pm_runtime.h> #include <linux/pm_runtime.h>
#include <linux/random.h> #include <linux/random.h>
......
...@@ -10,8 +10,6 @@ ...@@ -10,8 +10,6 @@
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/nvmem-consumer.h> #include <linux/nvmem-consumer.h>
#include <linux/nvmem-provider.h> #include <linux/nvmem-provider.h>
#include <linux/of_device.h>
#include <linux/of_address.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/pm_runtime.h> #include <linux/pm_runtime.h>
#include <linux/random.h> #include <linux/random.h>
......
...@@ -4,13 +4,13 @@ ...@@ -4,13 +4,13 @@
*/ */
#include <linux/export.h> #include <linux/export.h>
#include <linux/io.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/of.h> #include <linux/of.h>
#include <linux/of_address.h> #include <linux/of_address.h>
#include <linux/io.h>
#include <soc/tegra/fuse.h>
#include <soc/tegra/common.h> #include <soc/tegra/common.h>
#include <soc/tegra/fuse.h>
#include "fuse.h" #include "fuse.h"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment