提交 3ff8e4ac 编写于 作者: B Bjorn Helgaas

PCI: rcar: Remove DRV_NAME macro

The DRV_NAME macro is only used once, so there's no real advantage to
having the macro at all.  Remove it and use the "rcar-pcie" name directly
in the struct platform_driver.  No functional change intended.
Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
Acked-by: NSimon Horman <horms+renesas@verge.net.au>
上级 d0206f21
...@@ -31,8 +31,6 @@ ...@@ -31,8 +31,6 @@
#include <linux/pm_runtime.h> #include <linux/pm_runtime.h>
#include <linux/slab.h> #include <linux/slab.h>
#define DRV_NAME "rcar-pcie"
#define PCIECAR 0x000010 #define PCIECAR 0x000010
#define PCIECCTLR 0x000018 #define PCIECCTLR 0x000018
#define CONFIG_SEND_ENABLE (1 << 31) #define CONFIG_SEND_ENABLE (1 << 31)
...@@ -1199,7 +1197,7 @@ static int rcar_pcie_probe(struct platform_device *pdev) ...@@ -1199,7 +1197,7 @@ static int rcar_pcie_probe(struct platform_device *pdev)
static struct platform_driver rcar_pcie_driver = { static struct platform_driver rcar_pcie_driver = {
.driver = { .driver = {
.name = DRV_NAME, .name = "rcar-pcie",
.of_match_table = rcar_pcie_of_match, .of_match_table = rcar_pcie_of_match,
.suppress_bind_attrs = true, .suppress_bind_attrs = true,
}, },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册