Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 46797a2a authored by Jingoo Han's avatar Jingoo Han Committed by Wolfram Sang
Browse files

i2c: remove unnecessary OOM messages



The site-specific OOM messages are unnecessary, because they
duplicate the MM subsystem generic OOM message. For example,
k.alloc and v.alloc failures use dump_stack().

Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
Acked-by: default avatarGuenter Roeck <linux@roeck-us.net>
Reviewed-by: default avatarJean Delvare <jdelvare@suse.de>
Acked-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: default avatarFelipe Balbi <balbi@ti.com>
Acked-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 157a801e
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -225,10 +225,8 @@ static int bcm2835_i2c_probe(struct platform_device *pdev)
	struct i2c_adapter *adap;

	i2c_dev = devm_kzalloc(&pdev->dev, sizeof(*i2c_dev), GFP_KERNEL);
	if (!i2c_dev) {
		dev_err(&pdev->dev, "Cannot allocate i2c_dev\n");
	if (!i2c_dev)
		return -ENOMEM;
	}
	platform_set_drvdata(pdev, i2c_dev);
	i2c_dev->dev = &pdev->dev;
	init_completion(&i2c_dev->completion);
+0 −1
Original line number Diff line number Diff line
@@ -455,7 +455,6 @@ static int diolan_u2c_probe(struct usb_interface *interface,
	/* allocate memory for our device state and initialize it */
	dev = kzalloc(sizeof(*dev), GFP_KERNEL);
	if (dev == NULL) {
		dev_err(&interface->dev, "no memory for device state\n");
		ret = -ENOMEM;
		goto error;
	}
+1 −3
Original line number Diff line number Diff line
@@ -320,10 +320,8 @@ static int efm32_i2c_probe(struct platform_device *pdev)
		return -EINVAL;

	ddata = devm_kzalloc(&pdev->dev, sizeof(*ddata), GFP_KERNEL);
	if (!ddata) {
		dev_dbg(&pdev->dev, "failed to allocate private data\n");
	if (!ddata)
		return -ENOMEM;
	}
	platform_set_drvdata(pdev, ddata);

	init_completion(&ddata->done);
+1 −3
Original line number Diff line number Diff line
@@ -751,10 +751,8 @@ static int pch_i2c_probe(struct pci_dev *pdev,
	pch_pci_dbg(pdev, "Entered.\n");

	adap_info = kzalloc((sizeof(struct adapter_info)), GFP_KERNEL);
	if (adap_info == NULL) {
		pch_pci_err(pdev, "Memory allocation FAILED\n");
	if (adap_info == NULL)
		return -ENOMEM;
	}

	ret = pci_enable_device(pdev);
	if (ret) {
+1 −3
Original line number Diff line number Diff line
@@ -662,10 +662,8 @@ static int exynos5_i2c_probe(struct platform_device *pdev)
	int ret;

	i2c = devm_kzalloc(&pdev->dev, sizeof(struct exynos5_i2c), GFP_KERNEL);
	if (!i2c) {
		dev_err(&pdev->dev, "no memory for state\n");
	if (!i2c)
		return -ENOMEM;
	}

	if (of_property_read_u32(np, "clock-frequency", &op_clock)) {
		i2c->speed_mode = HSI2C_FAST_SPD;
Loading