diff options
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/ramoops.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/drivers/char/ramoops.c b/drivers/char/ramoops.c index 9c152ab2bfa7..9fec3232b736 100644 --- a/drivers/char/ramoops.c +++ b/drivers/char/ramoops.c | |||
@@ -147,14 +147,6 @@ static int __init ramoops_probe(struct platform_device *pdev) | |||
147 | cxt->phys_addr = pdata->mem_address; | 147 | cxt->phys_addr = pdata->mem_address; |
148 | cxt->record_size = pdata->record_size; | 148 | cxt->record_size = pdata->record_size; |
149 | cxt->dump_oops = pdata->dump_oops; | 149 | cxt->dump_oops = pdata->dump_oops; |
150 | /* | ||
151 | * Update the module parameter variables as well so they are visible | ||
152 | * through /sys/module/ramoops/parameters/ | ||
153 | */ | ||
154 | mem_size = pdata->mem_size; | ||
155 | mem_address = pdata->mem_address; | ||
156 | record_size = pdata->record_size; | ||
157 | dump_oops = pdata->dump_oops; | ||
158 | 150 | ||
159 | if (!request_mem_region(cxt->phys_addr, cxt->size, "ramoops")) { | 151 | if (!request_mem_region(cxt->phys_addr, cxt->size, "ramoops")) { |
160 | pr_err("request mem region failed\n"); | 152 | pr_err("request mem region failed\n"); |
@@ -175,6 +167,15 @@ static int __init ramoops_probe(struct platform_device *pdev) | |||
175 | goto fail1; | 167 | goto fail1; |
176 | } | 168 | } |
177 | 169 | ||
170 | /* | ||
171 | * Update the module parameter variables as well so they are visible | ||
172 | * through /sys/module/ramoops/parameters/ | ||
173 | */ | ||
174 | mem_size = pdata->mem_size; | ||
175 | mem_address = pdata->mem_address; | ||
176 | record_size = pdata->record_size; | ||
177 | dump_oops = pdata->dump_oops; | ||
178 | |||
178 | return 0; | 179 | return 0; |
179 | 180 | ||
180 | fail1: | 181 | fail1: |