Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F169713573
D8874.id23159.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D8874.id23159.diff
View Options
Index: sys/arm/freescale/imx/imx6_sdma.c
===================================================================
--- sys/arm/freescale/imx/imx6_sdma.c
+++ sys/arm/freescale/imx/imx6_sdma.c
@@ -351,7 +351,7 @@
static int
load_firmware(struct sdma_softc *sc)
{
- struct sdma_firmware_header *header;
+ const struct sdma_firmware_header *header;
const struct firmware *fp;
fp = firmware_get("sdma_fw");
@@ -360,14 +360,14 @@
return (-1);
}
- header = (struct sdma_firmware_header *)fp->data;
+ header = fp->data;
if (header->magic != FW_HEADER_MAGIC) {
device_printf(sc->dev, "Can't use firmware.\n");
return (-1);
}
sc->fw_header = header;
- sc->fw_scripts = (void *)((char *)header +
+ sc->fw_scripts = (const void *)((const char *)header +
header->script_addrs_start);
return (0);
@@ -377,14 +377,14 @@
boot_firmware(struct sdma_softc *sc)
{
struct sdma_buffer_descriptor *bd0;
- uint32_t *ram_code;
+ const uint32_t *ram_code;
int timeout;
int ret;
int chn;
int sz;
int i;
- ram_code = (void *)((char *)sc->fw_header +
+ ram_code = (const void *)((const char *)sc->fw_header +
sc->fw_header->ram_code_start);
/* Make sure SDMA has not started yet */
@@ -514,4 +514,5 @@
static devclass_t sdma_devclass;
-DRIVER_MODULE(sdma, simplebus, sdma_driver, sdma_devclass, 0, 0);
+EARLY_DRIVER_MODULE(sdma, simplebus, sdma_driver, sdma_devclass, 0, 0,
+ BUS_PASS_RESOURCE);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Sep 3, 8:54 AM (7 m, 12 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38088484
Default Alt Text
D8874.id23159.diff (1 KB)
Attached To
Mode
D8874: Fix build for iMX6 SDMA driver
Attached
Detach File
Event Timeline
Log In to Comment