It is naturally done by the power-supply module itself. Therefore it
is unnecessary for lowbat module to probe power-supply.
Change-Id: Id18bcea6a1bd9a0aae87c5f6a54815dc74b814b6
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
.nr_methods = ARRAY_SIZE(dbus_methods),
};
-static int lowbat_probe(void *data)
-{
- static const struct device_ops *ops;
- int ret = -EINVAL;
-
- FIND_DEVICE_INT(ops, "power_supply");
- ret = ops->probe(data);
- if (ret == 0)
- _I("Support lowbat handler.");
-
- return ret;
-}
-
static void lowbat_init(void *data)
{
int ret;
static const struct device_ops lowbat_device_ops = {
DECLARE_NAME_LEN("lowbat"),
- .probe = lowbat_probe,
.init = lowbat_init,
.execute = lowbat_execute,
.exit = lowbat_exit,