Commit 2d433e9c authored by Alexandre Belloni's avatar Alexandre Belloni
Browse files

rtc: rv3032: add ACPI support

parent b6ef5d4a
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -980,6 +980,12 @@ static int rv3032_probe(struct i2c_client *client)
	return 0;
}

static const struct acpi_device_id rv3032_i2c_acpi_match[] = {
	{ "MCRY3032" },
	{ }
};
MODULE_DEVICE_TABLE(acpi, rv3032_i2c_acpi_match);

static const __maybe_unused struct of_device_id rv3032_of_match[] = {
	{ .compatible = "microcrystal,rv3032", },
	{ }
@@ -989,6 +995,7 @@ MODULE_DEVICE_TABLE(of, rv3032_of_match);
static struct i2c_driver rv3032_driver = {
	.driver = {
		.name = "rtc-rv3032",
		.acpi_match_table = rv3032_i2c_acpi_match,
		.of_match_table = of_match_ptr(rv3032_of_match),
	},
	.probe_new	= rv3032_probe,