Change "chiptype" to "compatible". Making the hint name the same as the FDT
property name should make it easier to document the list of names accepted by both configuration mechanisms.
This commit is contained in:
parent
20355d09a6
commit
52efca2b95
@ -495,7 +495,7 @@ ds13rtc_get_chiptype(device_t dev)
|
||||
* We can only attach if provided a chiptype hint string.
|
||||
*/
|
||||
if (resource_string_value(device_get_name(dev),
|
||||
device_get_unit(dev), "chiptype", &htype) != 0)
|
||||
device_get_unit(dev), "compatible", &htype) != 0)
|
||||
return (TYPE_NONE);
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user