Commit fe29e1e4 authored by Marvin Scholz's avatar Marvin Scholz

mmc_device_darwin: Use kIOBSDNameKey

Use the kIOBSDNameKey define instead of the magic string with the
same value.
parent 92b4486a
......@@ -33,6 +33,7 @@
#include <string.h>
#include <IOKit/IOKitLib.h>
#include <IOKit/IOBSD.h>
#include <IOKit/IOCFPlugIn.h>
#include <DiskArbitration/DiskArbitration.h>
......@@ -297,7 +298,7 @@ static int iokit_find_service_matching (MMCDEV *mmc, io_service_t *servp) {
CFStringRef data;
char name[MNAMELEN] = "";
data = IORegistryEntrySearchCFProperty (service, kIOServicePlane, CFSTR("BSD Name"),
data = IORegistryEntrySearchCFProperty (service, kIOServicePlane, CFSTR(kIOBSDNameKey),
kCFAllocatorDefault, kIORegistryIterateRecursively);
if (NULL != data) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment