Fix "Add device dependency for services"
Not all systems use gpio-keys-polled, so adding a hard requirement on
that in the service files will cause the services to fail on those
systems.
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Change-Id: I62ab4ebc496bc1fb3ed7f2fc258930f2e509a189
Fixes: 58dc277a9df27cc79565b20f48d42c95a877d3c2.
diff --git a/phosphor-gpio-monitor@.service b/phosphor-gpio-monitor@.service
index e279169..02572a2 100644
--- a/phosphor-gpio-monitor@.service
+++ b/phosphor-gpio-monitor@.service
@@ -1,9 +1,5 @@
[Unit]
Description=Phosphor GPIO %I monitor
-Requires=dev-platform_gpio_keys.device
-After=dev-platform_gpio_keys.device
-Requires=dev-platform_gpio_keys_polled.device
-After=dev-platform_gpio_keys_polled.device
[Service]
Restart=no
diff --git a/phosphor-gpio-presence@.service b/phosphor-gpio-presence@.service
index d6a64e4..5f806d9 100644
--- a/phosphor-gpio-presence@.service
+++ b/phosphor-gpio-presence@.service
@@ -2,10 +2,6 @@
Description=Phosphor GPIO %I Presence
Wants=mapper-wait@-xyz-openbmc_project-inventory.service
After=mapper-wait@-xyz-openbmc_project-inventory.service
-Requires=dev-platform_gpio_keys.device
-After=dev-platform_gpio_keys.device
-Requires=dev-platform_gpio_keys_polled.device
-After=dev-platform_gpio_keys_polled.device
ConditionPathExists=/etc/default/obmc/gpio/phosphor-power-supply-%i.conf
[Service]