PCI: uniphier: remove module code from built-in driver
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 15 Dec 2019 22:39:37 +0000 (07:39 +0900)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Mon, 13 Jan 2020 16:38:50 +0000 (16:38 +0000)
commitd36925be53821306ffcaf642967335cd1fb12410
treeccc5667dd5a4221104e45a262839bcb9c62d7b2c
parente42617b825f8073569da76dc4510bfa019b1c35a
PCI: uniphier: remove module code from built-in driver

builtin_platform_driver() and MODULE_* are always odd combination.

This file is not compiled as a module by anyone because
CONFIG_PCIE_UNIPHIER is a bool option.

Let's remove the modular code that is essentially orphaned, so that
when reading the driver there is no doubt it is builtin-only.

We explicitly disallow a driver unbind, since that doesn't have a
sensible use case anyway, and it allows us to drop the ".remove" code.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Andrew Murray <andrew.murray@arm.com>
drivers/pci/controller/dwc/pcie-uniphier.c