Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 285190
b: refs/heads/master
c: 5775376
h: refs/heads/master
v: v3
  • Loading branch information
Sylwester Nawrocki authored and Mauro Carvalho Chehab committed Nov 8, 2011
1 parent 343d62c commit 43e9975
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 82aae98df488c15c212059b23460fe9a9dd97412
refs/heads/master: 57753767dda8a0f415555da3d94947d2687bc421
1 change: 1 addition & 0 deletions trunk/drivers/staging/media/as102/Kconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
config DVB_AS102
tristate "Abilis AS102 DVB receiver"
depends on DVB_CORE && USB && I2C && INPUT
select FW_LOADER
help
Choose Y or M here if you have a device containing an AS102

Expand Down
3 changes: 0 additions & 3 deletions trunk/drivers/staging/media/as102/as102_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,16 +249,13 @@ int as102_dvb_register(struct as102_dev_t *as102_dev)
/* init start / stop stream mutex */
mutex_init(&as102_dev->sem);

#if defined(CONFIG_FW_LOADER) || defined(CONFIG_FW_LOADER_MODULE)
/*
* try to load as102 firmware. If firmware upload failed, we'll be
* able to upload it later.
*/
if (fw_upload)
try_then_request_module(as102_fw_upload(&as102_dev->bus_adap),
"firmware_class");
#endif

failed:
LEAVE();
/* FIXME: free dvb_XXX */
Expand Down
5 changes: 1 addition & 4 deletions trunk/drivers/staging/media/as102/as102_fw.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#include "as102_drv.h"
#include "as102_fw.h"

#if defined(CONFIG_FW_LOADER) || defined(CONFIG_FW_LOADER_MODULE)
char as102_st_fw1[] = "as102_data1_st.hex";
char as102_st_fw2[] = "as102_data2_st.hex";
char as102_dt_fw1[] = "as102_data1_dt.hex";
Expand Down Expand Up @@ -182,7 +181,6 @@ int as102_fw_upload(struct as102_bus_adapter_t *bus_adap)
fw2 = as102_st_fw2;
}

#if defined(CONFIG_FW_LOADER) || defined(CONFIG_FW_LOADER_MODULE)
/* allocate buffer to store firmware upload command and data */
cmd_buf = kzalloc(MAX_FW_PKT_SIZE, GFP_KERNEL);
if (cmd_buf == NULL) {
Expand Down Expand Up @@ -237,8 +235,7 @@ int as102_fw_upload(struct as102_bus_adapter_t *bus_adap)
/* release firmware if needed */
if (firmware != NULL)
release_firmware(firmware);
#endif

LEAVE();
return errno;
}
#endif

0 comments on commit 43e9975

Please sign in to comment.