Loading drivers/hwtracing/coresight/coresight-stm.c +6 −6 Original line number Diff line number Diff line // SPDX-License-Identifier: GPL-2.0 /* * Copyright (c) 2015-2017, The Linux Foundation. All rights reserved. * Copyright (c) 2015-2018, The Linux Foundation. All rights reserved. * * Description: CoreSight System Trace Macrocell driver * Loading Loading @@ -866,11 +866,6 @@ static int stm_probe(struct amba_device *adev, const struct amba_id *id) BYTES_PER_CHANNEL), resource_size(res)); } bitmap_size = BITS_TO_LONGS(drvdata->numsp) * sizeof(long); /* Store the driver data pointer for use in exported functions */ ret = stm_set_ost_params(drvdata, bitmap_size); if (ret) return ret; guaranteed = devm_kzalloc(dev, bitmap_size, GFP_KERNEL); if (!guaranteed) Loading Loading @@ -900,6 +895,11 @@ static int stm_probe(struct amba_device *adev, const struct amba_id *id) goto stm_unregister; } /* Store the driver data pointer for use in exported functions */ ret = stm_set_ost_params(drvdata, bitmap_size); if (ret) goto stm_unregister; pm_runtime_put(&adev->dev); dev_info(dev, "%s initialized with master %s\n", (char *)id->data, Loading Loading
drivers/hwtracing/coresight/coresight-stm.c +6 −6 Original line number Diff line number Diff line // SPDX-License-Identifier: GPL-2.0 /* * Copyright (c) 2015-2017, The Linux Foundation. All rights reserved. * Copyright (c) 2015-2018, The Linux Foundation. All rights reserved. * * Description: CoreSight System Trace Macrocell driver * Loading Loading @@ -866,11 +866,6 @@ static int stm_probe(struct amba_device *adev, const struct amba_id *id) BYTES_PER_CHANNEL), resource_size(res)); } bitmap_size = BITS_TO_LONGS(drvdata->numsp) * sizeof(long); /* Store the driver data pointer for use in exported functions */ ret = stm_set_ost_params(drvdata, bitmap_size); if (ret) return ret; guaranteed = devm_kzalloc(dev, bitmap_size, GFP_KERNEL); if (!guaranteed) Loading Loading @@ -900,6 +895,11 @@ static int stm_probe(struct amba_device *adev, const struct amba_id *id) goto stm_unregister; } /* Store the driver data pointer for use in exported functions */ ret = stm_set_ost_params(drvdata, bitmap_size); if (ret) goto stm_unregister; pm_runtime_put(&adev->dev); dev_info(dev, "%s initialized with master %s\n", (char *)id->data, Loading