Skip to content

Commit af6502e

Browse files
committed
Merge tag 'samsung-soc-6.15' of https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux into soc/drivers
Samsung mach/soc changes for v6.15 1. S3C: Drop linux/fb.h header. 2. Exynos ChipID: Check if memory allocation succeeded. * tag 'samsung-soc-6.15' of https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux: soc: samsung: exynos-chipid: Add NULL pointer check in exynos_chipid_probe() ARM: s3c: Do not include <linux/fb.h> Link: https://lore.kernel.org/r/20250309185601.10616-3-krzysztof.kozlowski@linaro.org Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2 parents 7bb0db2 + c8222ef commit af6502e

3 files changed

Lines changed: 2 additions & 2 deletions

File tree

arch/arm/mach-s3c/devs.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#include <linux/slab.h>
2020
#include <linux/string.h>
2121
#include <linux/dma-mapping.h>
22-
#include <linux/fb.h>
2322
#include <linux/gfp.h>
2423
#include <linux/mmc/host.h>
2524
#include <linux/ioport.h>

arch/arm/mach-s3c/setup-fb-24bpp-s3c64xx.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
#include <linux/kernel.h>
1111
#include <linux/types.h>
12-
#include <linux/fb.h>
1312
#include <linux/gpio.h>
1413

1514
#include "fb.h"

drivers/soc/samsung/exynos-chipid.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ static int exynos_chipid_probe(struct platform_device *pdev)
137137

138138
soc_dev_attr->revision = devm_kasprintf(&pdev->dev, GFP_KERNEL,
139139
"%x", soc_info.revision);
140+
if (!soc_dev_attr->revision)
141+
return -ENOMEM;
140142
soc_dev_attr->soc_id = product_id_to_soc_id(soc_info.product_id);
141143
if (!soc_dev_attr->soc_id) {
142144
pr_err("Unknown SoC\n");

0 commit comments

Comments
 (0)