mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-15 15:15:47 +00:00
0f2692f7f2
Fix gcc build error while CONFIG_REGMAP_MMIO is not set
drivers/staging/fieldbus/anybuss/arcx-anybus.o: In function `controller_probe':
arcx-anybus.c: undefined reference to `__devm_regmap_init_mmio_clk'
Select REGMAP_MMIO to fix it.
Reported-by: Hulk Robot <hulkci@huawei.com>
Fixes: 2411a336c8
("staging: fieldbus: arcx-anybus: change custom -> mmio regmap")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Sven Van Asbroeck <TheSven73@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
41 lines
1.2 KiB
Text
41 lines
1.2 KiB
Text
# SPDX-License-Identifier: GPL-2.0-only
|
|
config HMS_ANYBUSS_BUS
|
|
tristate "HMS Anybus-S Bus Support"
|
|
select REGMAP
|
|
depends on OF && FIELDBUS_DEV
|
|
help
|
|
Driver for the HMS Industrial Networks Anybus-S bus.
|
|
You can attach a single Anybus-S compatible card to it, which
|
|
typically provides fieldbus and industrial ethernet
|
|
functionality.
|
|
|
|
if HMS_ANYBUSS_BUS
|
|
|
|
config ARCX_ANYBUS_CONTROLLER
|
|
tristate "Arcx Anybus-S Controller"
|
|
depends on OF && GPIOLIB && HAS_IOMEM && REGULATOR
|
|
select REGMAP_MMIO
|
|
help
|
|
Select this to get support for the Arcx Anybus controller.
|
|
It connects to the SoC via a parallel memory bus, and
|
|
embeds up to two Anybus-S buses (slots).
|
|
There is also a CAN power readout, unrelated to the Anybus,
|
|
modelled as a regulator.
|
|
|
|
config HMS_PROFINET
|
|
tristate "HMS Profinet IRT Controller (Anybus-S)"
|
|
depends on FIELDBUS_DEV && HMS_ANYBUSS_BUS
|
|
help
|
|
If you say yes here you get support for the HMS Industrial
|
|
Networks Profinet IRT Controller.
|
|
|
|
It will be registered with the kernel as a fieldbus_dev,
|
|
so userspace can interact with it via the fieldbus_dev userspace
|
|
interface(s).
|
|
|
|
This driver can also be built as a module. If so, the module
|
|
will be called hms-profinet.
|
|
|
|
If unsure, say N.
|
|
|
|
endif
|