aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/sram.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-05-21 00:20:31 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2016-05-21 00:20:31 -0400
commit5af2344013454640e0133bb62e8cf2e30190a472 (patch)
tree93495d1eb88d7498dac4747a3d28081c09a69a55 /drivers/misc/sram.c
parent19e36ad292ab24980db64a5ff17973d3118a8fb9 (diff)
parent725d0123dfff3d7b666cf57f5d29c50addfc99d3 (diff)
Merge tag 'char-misc-4.7-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc
Pull char / misc driver updates from Greg KH: "Here's the big char and misc driver update for 4.7-rc1. Lots of different tiny driver subsystems have updates here with new drivers and functionality. Details in the shortlog. All have been in linux-next with no reported issues for a while" * tag 'char-misc-4.7-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (125 commits) mcb: Delete num_cells variable which is not required mcb: Fixed bar number assignment for the gdd mcb: Replace ioremap and request_region with the devm version mcb: Implement bus->dev.release callback mcb: export bus information via sysfs mcb: Correctly initialize the bus's device mei: bus: call mei_cl_read_start under device lock coresight: etb10: adjust read pointer only when needed coresight: configuring ETF in FIFO mode when acting as link coresight: tmc: implementing TMC-ETF AUX space API coresight: moving struct cs_buffers to header file coresight: tmc: keep track of memory width coresight: tmc: make sysFS and Perf mode mutually exclusive coresight: tmc: dump system memory content only when needed coresight: tmc: adding mode of operation for link/sinks coresight: tmc: getting rid of multiple read access coresight: tmc: allocating memory when needed coresight: tmc: making prepare/unprepare functions generic coresight: tmc: splitting driver in ETB/ETF and ETR components coresight: tmc: cleaning up header file ...
Diffstat (limited to 'drivers/misc/sram.c')
-rw-r--r--drivers/misc/sram.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/misc/sram.c b/drivers/misc/sram.c
index 69cdabea9c03..f84b53d6ce50 100644
--- a/drivers/misc/sram.c
+++ b/drivers/misc/sram.c
@@ -364,8 +364,8 @@ static int sram_probe(struct platform_device *pdev)
364 sram->virt_base = devm_ioremap(sram->dev, res->start, size); 364 sram->virt_base = devm_ioremap(sram->dev, res->start, size);
365 else 365 else
366 sram->virt_base = devm_ioremap_wc(sram->dev, res->start, size); 366 sram->virt_base = devm_ioremap_wc(sram->dev, res->start, size);
367 if (IS_ERR(sram->virt_base)) 367 if (!sram->virt_base)
368 return PTR_ERR(sram->virt_base); 368 return -ENOMEM;
369 369
370 sram->pool = devm_gen_pool_create(sram->dev, ilog2(SRAM_GRANULARITY), 370 sram->pool = devm_gen_pool_create(sram->dev, ilog2(SRAM_GRANULARITY),
371 NUMA_NO_NODE, NULL); 371 NUMA_NO_NODE, NULL);