mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
fdt: simple-mfd: Set the syscon memory to SHAREABLE
Since syscon is usually used with another compatible string (and so another driver), this driver might want to map the memory too. MFC after: 1 week
This commit is contained in:
parent
3afdc7303c
commit
be6d7fc657
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=351129
|
@ -187,7 +187,7 @@ simple_mfd_attach(device_t dev)
|
|||
|
||||
if (ofw_bus_is_compatible(dev, "syscon")) {
|
||||
sc->mem_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid,
|
||||
RF_ACTIVE);
|
||||
RF_ACTIVE | RF_SHAREABLE);
|
||||
if (sc->mem_res == NULL) {
|
||||
device_printf(dev,
|
||||
"Cannot allocate memory resource\n");
|
||||
|
|
Loading…
Reference in a new issue