|
9 | 9 | #include <linux/bitfield.h>
|
10 | 10 | #include <linux/clk.h>
|
11 | 11 | #include <linux/delay.h>
|
| 12 | +#include <linux/init.h> |
12 | 13 | #include <linux/interrupt.h>
|
13 | 14 | #include <linux/iopoll.h>
|
14 | 15 | #include <linux/irqchip/chained_irq.h>
|
15 | 16 | #include <linux/irqdomain.h>
|
16 |
| -#include <linux/module.h> |
17 | 17 | #include <linux/of_irq.h>
|
18 | 18 | #include <linux/pci.h>
|
19 | 19 | #include <linux/phy/phy.h>
|
@@ -171,12 +171,6 @@ static void uniphier_pcie_irq_enable(struct uniphier_pcie_priv *priv)
|
171 | 171 | writel(PCL_RCV_INTX_ALL_ENABLE, priv->base + PCL_RCV_INTX);
|
172 | 172 | }
|
173 | 173 |
|
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 |
| - |
180 | 174 | static void uniphier_pcie_irq_ack(struct irq_data *d)
|
181 | 175 | {
|
182 | 176 | 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)
|
397 | 391 | return ret;
|
398 | 392 | }
|
399 | 393 |
|
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 |
| - |
408 | 394 | static const struct dw_pcie_ops dw_pcie_ops = {
|
409 | 395 | .start_link = uniphier_pcie_establish_link,
|
410 | 396 | .stop_link = uniphier_pcie_stop_link,
|
@@ -456,31 +442,16 @@ static int uniphier_pcie_probe(struct platform_device *pdev)
|
456 | 442 | return uniphier_add_pcie_port(priv, pdev);
|
457 | 443 | }
|
458 | 444 |
|
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 |
| - |
468 | 445 | static const struct of_device_id uniphier_pcie_match[] = {
|
469 | 446 | { .compatible = "socionext,uniphier-pcie", },
|
470 | 447 | { /* sentinel */ },
|
471 | 448 | };
|
472 |
| -MODULE_DEVICE_TABLE(of, uniphier_pcie_match); |
473 | 449 |
|
474 | 450 | static struct platform_driver uniphier_pcie_driver = {
|
475 | 451 | .probe = uniphier_pcie_probe,
|
476 |
| - .remove = uniphier_pcie_remove, |
477 | 452 | .driver = {
|
478 | 453 | .name = "uniphier-pcie",
|
479 | 454 | .of_match_table = uniphier_pcie_match,
|
480 | 455 | },
|
481 | 456 | };
|
482 | 457 | 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