Skip to content

Commit 01b810e

Browse files
committed
Merge branch 'remotes/lorenzo/pci/uniphier'
- Remove unused modular code from uniphier, which cannot be built as a module (Masahiro Yamada) * remotes/lorenzo/pci/uniphier: PCI: uniphier: remove module code from built-in driver
2 parents b647d2b + d36925b commit 01b810e

File tree

1 file changed

+1
-30
lines changed

1 file changed

+1
-30
lines changed

drivers/pci/controller/dwc/pcie-uniphier.c

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
#include <linux/bitfield.h>
1010
#include <linux/clk.h>
1111
#include <linux/delay.h>
12+
#include <linux/init.h>
1213
#include <linux/interrupt.h>
1314
#include <linux/iopoll.h>
1415
#include <linux/irqchip/chained_irq.h>
1516
#include <linux/irqdomain.h>
16-
#include <linux/module.h>
1717
#include <linux/of_irq.h>
1818
#include <linux/pci.h>
1919
#include <linux/phy/phy.h>
@@ -171,12 +171,6 @@ static void uniphier_pcie_irq_enable(struct uniphier_pcie_priv *priv)
171171
writel(PCL_RCV_INTX_ALL_ENABLE, priv->base + PCL_RCV_INTX);
172172
}
173173

174-
static void uniphier_pcie_irq_disable(struct uniphier_pcie_priv *priv)
175-
{
176-
writel(0, priv->base + PCL_RCV_INT);
177-
writel(0, priv->base + PCL_RCV_INTX);
178-
}
179-
180174
static void uniphier_pcie_irq_ack(struct irq_data *d)
181175
{
182176
struct pcie_port *pp = irq_data_get_irq_chip_data(d);
@@ -397,14 +391,6 @@ static int uniphier_pcie_host_enable(struct uniphier_pcie_priv *priv)
397391
return ret;
398392
}
399393

400-
static void uniphier_pcie_host_disable(struct uniphier_pcie_priv *priv)
401-
{
402-
uniphier_pcie_irq_disable(priv);
403-
phy_exit(priv->phy);
404-
reset_control_assert(priv->rst);
405-
clk_disable_unprepare(priv->clk);
406-
}
407-
408394
static const struct dw_pcie_ops dw_pcie_ops = {
409395
.start_link = uniphier_pcie_establish_link,
410396
.stop_link = uniphier_pcie_stop_link,
@@ -456,31 +442,16 @@ static int uniphier_pcie_probe(struct platform_device *pdev)
456442
return uniphier_add_pcie_port(priv, pdev);
457443
}
458444

459-
static int uniphier_pcie_remove(struct platform_device *pdev)
460-
{
461-
struct uniphier_pcie_priv *priv = platform_get_drvdata(pdev);
462-
463-
uniphier_pcie_host_disable(priv);
464-
465-
return 0;
466-
}
467-
468445
static const struct of_device_id uniphier_pcie_match[] = {
469446
{ .compatible = "socionext,uniphier-pcie", },
470447
{ /* sentinel */ },
471448
};
472-
MODULE_DEVICE_TABLE(of, uniphier_pcie_match);
473449

474450
static struct platform_driver uniphier_pcie_driver = {
475451
.probe = uniphier_pcie_probe,
476-
.remove = uniphier_pcie_remove,
477452
.driver = {
478453
.name = "uniphier-pcie",
479454
.of_match_table = uniphier_pcie_match,
480455
},
481456
};
482457
builtin_platform_driver(uniphier_pcie_driver);
483-
484-
MODULE_AUTHOR("Kunihiko Hayashi <[email protected]>");
485-
MODULE_DESCRIPTION("UniPhier PCIe host controller driver");
486-
MODULE_LICENSE("GPL v2");

0 commit comments

Comments
 (0)