diff options
author | John Klug <john.klug@multitech.com> | 2023-01-19 12:44:54 -0600 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2023-01-19 14:30:51 -0600 |
commit | f65aa14e5248c89f7099f80ae1bf354c3d94a719 (patch) | |
tree | 6e40e41da92325ef84d85636e64b7bddf6100403 | |
parent | 617fdc8bb7853f468936fb827c136cd2c12b599f (diff) | |
download | mts-io-f65aa14e5248c89f7099f80ae1bf354c3d94a719.tar.gz mts-io-f65aa14e5248c89f7099f80ae1bf354c3d94a719.tar.bz2 mts-io-f65aa14e5248c89f7099f80ae1bf354c3d94a719.zip |
Use pr_info when the mts-io device does not exist4.9.14
-rw-r--r-- | io-module/mts-io.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/io-module/mts-io.c b/io-module/mts-io.c index f5c61ac..6fd2eae 100644 --- a/io-module/mts-io.c +++ b/io-module/mts-io.c @@ -122,18 +122,18 @@ static int mts_io_probe(struct platform_device *pdev) platform_set_drvdata(pdev, mts_io_dd); if (!dev->parent) { - dev_info(dev, "Parent device is not found"); + dev_info(dev,"Parent device is not found"); } else if (dev->parent == &platform_bus) { - dev_info(dev, "Parent device is platform_bus. No need to create symlink"); + dev_info(dev,"Parent device is platform_bus. No need to create symlink"); goto exit; } - dev_info(dev "Creating symlink on platform_bus to %s", symlink_name); + dev_info(dev,"Creating symlink on platform_bus to %s", symlink_name); res = sysfs_create_link(&platform_bus.kobj, &dev->kobj, symlink_name); if (!res) { mts_io_dd->f_platform_bus_symlink = true; } else { - dev_warn(dev "Failed to create symlink"); + dev_warn(dev,"Failed to create symlink"); } exit: @@ -350,10 +350,10 @@ static ssize_t mts_attr_store_radio_reset(struct device *dev, hw_version = mts_get_hw_version(); if ((strncmp(hw_version,HW_VERSION_MTCDT_0_2,strlen(HW_VERSION_MTCDT_0_2)) == 0) || (strncmp(hw_version,HW_VERSION_MTCDTIP_0_1,strlen(HW_VERSION_MTCDTIP_0_1)) == 0)) { - dev_dbg(dev, "Using a reset time of 1250mS for USB hub\n"); + dev_dbg(dev,"Using a reset time of 1250mS for USB hub\n"); reset_time = 1250; } else { - dev_dbg(dev, "Using a reset time of 250mS\n"); + dev_dbg(dev,"Using a reset time of 250mS\n"); reset_time = 250; } @@ -1443,7 +1443,7 @@ static int __init mts_io_init(void) int ret; - dev_info(&mts_io_platform_device->dev,"mts-io init: " VERSION); + pr_info("mts-io init: " VERSION); /* We do a platform_driver_register to do a probe * of device tree and set the pinctrl/gpio settings. */ @@ -1621,7 +1621,7 @@ static void __exit mts_io_exit(void) if (DEVICE_CAPA(id_eeprom.capa, CAPA_LORA) && attr_group_lora) { mts_teardown_lora_port(); } - printk(KERN_INFO "mts-io exiting dev"); + pr_info("mts-io exiting dev"); } module_init(mts_io_init); |