From f49fa4f4e879471df342dc70a25512acd060162f Mon Sep 17 00:00:00 2001 From: mglocker Date: Thu, 20 Oct 2022 10:35:35 +0000 Subject: [PATCH] Remove the single part string for DS1339, since that is only required on sparc64 because OpenFirmware doesn't support the , compatible pattern. We don't expect this chip to turn up on sparc64. Suggested and ok kettenis@ --- sys/dev/i2c/ds1307.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/dev/i2c/ds1307.c b/sys/dev/i2c/ds1307.c index 912548ab52e..67082c2b85a 100644 --- a/sys/dev/i2c/ds1307.c +++ b/sys/dev/i2c/ds1307.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ds1307.c,v 1.7 2022/10/18 16:07:59 mglocker Exp $ */ +/* $OpenBSD: ds1307.c,v 1.8 2022/10/20 10:35:35 mglocker Exp $ */ /* * Copyright (c) 2016 Marcus Glocker @@ -94,8 +94,7 @@ maxrtc_match(struct device *parent, void *v, void *arg) if (strcmp(ia->ia_name, "dallas,ds1307") == 0 || strcmp(ia->ia_name, "ds1307") == 0 || - strcmp(ia->ia_name, "dallas,ds1339") == 0 || - strcmp(ia->ia_name, "ds1339") == 0) + strcmp(ia->ia_name, "dallas,ds1339") == 0) return (1); return (0); -- 2.20.1